Class: GraphQL::Query::BaseExecution::ValueResolution::ScalarResolution

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

Instance Attribute Summary

Attributes inherited from BaseResolution

#ast_field, #execution_strategy, #field_type, #parent_type, #query, #target, #value

Instance Method Summary collapse

Methods inherited from BaseResolution

#get_strategy_for_kind, #initialize

Constructor Details

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

Instance Method Details

#resultObject



32
33
34
# File 'lib/graphql/query/base_execution/value_resolution.rb', line 32

def result
  field_type.coerce(value)
end