Sha256: b680d8dad467f2fcdf207d4b170cdf255ee806501c9afd49af58c52a9362d1bb

Contents?: true

Size: 627 Bytes

Versions: 7

Compression:

Stored size: 627 Bytes

Contents

module GraphQL
  class Query
    class SerialExecution
      module SelectionResolution
        def self.resolve(target, current_type, irep_nodes, query_ctx)
          own_selections = query_ctx.query.selections(irep_nodes, current_type)

          selection_result = {}

          own_selections.each do |name, child_irep_nodes|
            selection_result.merge!(query_ctx.execution_strategy.field_resolution.new(
              child_irep_nodes,
              current_type,
              target,
              query_ctx
            ).result)
          end

          selection_result
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
graphql-1.2.6 lib/graphql/query/serial_execution/selection_resolution.rb
graphql-1.2.5 lib/graphql/query/serial_execution/selection_resolution.rb
graphql-1.2.4 lib/graphql/query/serial_execution/selection_resolution.rb
graphql-1.2.3 lib/graphql/query/serial_execution/selection_resolution.rb
graphql-1.2.2 lib/graphql/query/serial_execution/selection_resolution.rb
graphql-1.2.1 lib/graphql/query/serial_execution/selection_resolution.rb
graphql-1.2.0 lib/graphql/query/serial_execution/selection_resolution.rb