class GraphQL::Batch::SetupMultiplex

Public Class Methods

new(schema, executor_class:) click to toggle source
# File lib/graphql/batch/setup_multiplex.rb, line 3
def initialize(schema, executor_class:)
  @schema = schema
  @executor_class = executor_class
end

Public Instance Methods

after_multiplex(multiplex) click to toggle source
# File lib/graphql/batch/setup_multiplex.rb, line 12
def after_multiplex(multiplex)
  Setup.end_batching
end
before_multiplex(multiplex) click to toggle source
# File lib/graphql/batch/setup_multiplex.rb, line 8
def before_multiplex(multiplex)
  Setup.start_batching(@executor_class)
end
instrument(type, field) click to toggle source
# File lib/graphql/batch/setup_multiplex.rb, line 16
def instrument(type, field)
  Setup.instrument_field(@schema, type, field)
end