Class: GraphQL::Execution::Batching::RawValueFieldResolveStep

Inherits:
FieldResolveStep
  • Object
show all
Defined in:
lib/graphql/execution/batching/field_resolve_step.rb

Instance Attribute Summary

Attributes inherited from FieldResolveStep

#arguments, #ast_node, #field_definition, #key, #object_is_authorized, #parent_type, #runner, #selections_step

Instance Method Summary collapse

Methods inherited from FieldResolveStep

#add_graphql_error, #add_non_null_error, #append_selection, #ast_nodes, #authorized_finished, #build_results, #call, #coerce_argument_value, #coerce_arguments, #enqueue_next_steps, #execute_field, #initialize, #path, #sync, #value

Constructor Details

This class inherits a constructor from GraphQL::Execution::Batching::FieldResolveStep

Instance Method Details

#build_graphql_result(graphql_result, key, field_result, return_type, is_nn, is_list, is_from_array) ⇒ Object

rubocop:disable Metrics/ParameterLists



398
399
400
401
402
403
404
# File 'lib/graphql/execution/batching/field_resolve_step.rb', line 398

def build_graphql_result(graphql_result, key, field_result, return_type, is_nn, is_list, is_from_array) # rubocop:disable Metrics/ParameterLists
  if field_result.is_a?(Interpreter::RawValue)
    graphql_result[key] = field_result.resolve
  else
    super
  end
end