Sha256: d84b74a28a89ed80bdd7fabbed1e64c584c61adb0b1dcbd8f254f0ea5824bdb4

Contents?: true

Size: 359 Bytes

Versions: 4

Compression:

Stored size: 359 Bytes

Contents

module GraphQL::Batch
  class SetupMultiplex
    def initialize(schema, executor_class:)
      @schema = schema
      @executor_class = executor_class
    end

    def before_multiplex(multiplex)
      GraphQL::Batch::Executor.start_batch(@executor_class)
    end

    def after_multiplex(multiplex)
      GraphQL::Batch::Executor.end_batch
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
graphql-batch-0.5.3 lib/graphql/batch/setup_multiplex.rb
graphql-batch-0.5.2 lib/graphql/batch/setup_multiplex.rb
graphql-batch-0.5.1 lib/graphql/batch/setup_multiplex.rb
graphql-batch-0.5.0 lib/graphql/batch/setup_multiplex.rb