Sha256: 3dbce6d3d77d75260170ed471d0865ba145f02112a32650713f5589c476c95b2

Contents?: true

Size: 713 Bytes

Versions: 7

Compression:

Stored size: 713 Bytes

Contents

module GraphQL
  class Query
    class SerialExecution
      class OperationResolution
        attr_reader :target, :ast_operation_definition, :execution_context

        def initialize(ast_operation_definition, target, execution_context)
          @ast_operation_definition = ast_operation_definition
          @target = target
          @execution_context = execution_context
        end

        def result
          selections = ast_operation_definition.selections
          execution_context.strategy.selection_resolution.new(
            execution_context.query.root_value,
            target,
            selections,
            execution_context
          ).result
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
graphql-0.15.3 lib/graphql/query/serial_execution/operation_resolution.rb
graphql-0.15.2 lib/graphql/query/serial_execution/operation_resolution.rb
graphql-0.14.2 lib/graphql/query/serial_execution/operation_resolution.rb
graphql-0.15.1 lib/graphql/query/serial_execution/operation_resolution.rb
graphql-0.15.0 lib/graphql/query/serial_execution/operation_resolution.rb
graphql-0.14.1 lib/graphql/query/serial_execution/operation_resolution.rb
graphql-0.14.0 lib/graphql/query/serial_execution/operation_resolution.rb