Class: Skylight::Core::Normalizers::GraphQL::ExecuteQueryLazy Private

Inherits:
ExecuteQuery show all
Defined in:
lib/skylight/core/normalizers/graphql/base.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary

Constants inherited from Base

Base::ANONYMOUS, Base::CAT

Instance Attribute Summary

Attributes inherited from Normalizer

#config

Instance Method Summary collapse

Methods inherited from Base

inherited, key, register_graphql

Methods inherited from Normalizer

#initialize, #normalize_after, register

Constructor Details

This class inherits a constructor from Skylight::Core::Normalizers::Normalizer

Instance Method Details

#normalize(trace, _name, payload) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



123
124
125
126
127
128
129
# File 'lib/skylight/core/normalizers/graphql/base.rb', line 123

def normalize(trace, _name, payload)
  if payload[:query]
    super
  elsif payload[:multiplex]
    [CAT, "graphql.#{key}.multiplex", nil]
  end
end