Class: GraphQL::Query::SerialExecution::ValueResolution::ScalarResolution

Inherits:
BaseResolution
  • Object
show all
Defined in:
lib/graphql/query/serial_execution/value_resolution.rb

Instance Attribute Summary

Attributes inherited from BaseResolution

#execution_context, #field_type, #irep_node, #parent_type, #target, #value

Instance Method Summary collapse

Methods inherited from BaseResolution

#get_strategy_for_kind, #initialize, #result

Constructor Details

This class inherits a constructor from GraphQL::Query::SerialExecution::ValueResolution::BaseResolution

Instance Method Details

#non_null_resultObject

Apply the scalar's defined coerce_result method to the value


40
41
42
# File 'lib/graphql/query/serial_execution/value_resolution.rb', line 40

def non_null_result
  field_type.coerce_result(value)
end