Class: GraphQL::Execution::Next::RawValueFieldResolveStep

Inherits:
FieldResolveStep show all
Defined in:
lib/graphql/execution/next/field_resolve_step.rb

Instance Attribute Summary

Attributes inherited from FieldResolveStep

#arguments, #ast_node, #field_definition, #field_results, #key, #object_is_authorized, #parent_type, #pending_steps, #runner, #selections_step, #was_scoped

Instance Method Summary collapse

Methods inherited from FieldResolveStep

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

Constructor Details

This class inherits a constructor from GraphQL::Execution::Next::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



680
681
682
683
684
685
686
# File 'lib/graphql/execution/next/field_resolve_step.rb', line 680

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