Class: GraphQL::Query::ParallelExecution::FieldResolution

Inherits:
SerialExecution::FieldResolution show all
Defined in:
lib/graphql/query/parallel_execution.rb

Instance Attribute Summary

Attributes inherited from SerialExecution::FieldResolution

#arguments, #field

Attributes inherited from BaseExecution::SelectedObjectResolution

#ast_node, #execution_strategy, #parent_type, #query, #target

Instance Method Summary collapse

Methods inherited from SerialExecution::FieldResolution

#initialize, #result

Methods inherited from BaseExecution::SelectedObjectResolution

#initialize

Constructor Details

This class inherits a constructor from GraphQL::Query::SerialExecution::FieldResolution

Instance Method Details

#get_finished_value(raw_value) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/graphql/query/parallel_execution.rb', line 61

def get_finished_value(raw_value)
  if raw_value.is_a?(Celluloid::Future)
    GraphQL::Query::ParallelExecution::FutureFieldResolution.new(field_resolution: self, future: raw_value)
  else
    super
  end
end