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

Inherits:
ExecuteQuery show all
Defined in:
lib/skylight/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 Execute

#normalize_after

Methods inherited from Base

inherited, key, register_graphql

Methods inherited from Normalizer

#initialize, #normalize_after, #normalize_with_meta, register

Methods included from Util::Logging

#config_for_logging, #debug, #error, #fmt, #info, #log, #log_context, #raise_on_error?, #t, #trace, #trace?, #warn

Constructor Details

This class inherits a constructor from Skylight::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.



137
138
139
140
141
142
143
# File 'lib/skylight/normalizers/graphql/base.rb', line 137

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