module GraphQL::Query::SerialExecution::SelectionResolution
Public Class Methods
resolve(target, current_type, selection, query_ctx)
click to toggle source
# File lib/graphql/query/serial_execution/selection_resolution.rb, line 5 def self.resolve(target, current_type, selection, query_ctx) selection_result = {} selection.typed_children[current_type].each do |name, subselection| selection_result.merge!(query_ctx.execution_strategy.field_resolution.new( subselection, current_type, target, query_ctx ).result) end selection_result end