Module: GraphQL::Query::SerialExecution::FieldResolution::FieldResolveStep

Defined in:
lib/graphql/query/serial_execution/field_resolution.rb

Overview

A .call-able suitable to be the last step in a middleware chain

Class Method Summary collapse

Class Method Details

.call(_parent_type, parent_object, field_definition, field_args, context, _next = nil) ⇒ Object

Execute the field's resolve method



103
104
105
# File 'lib/graphql/query/serial_execution/field_resolution.rb', line 103

def self.call(_parent_type, parent_object, field_definition, field_args, context, _next = nil)
  field_definition.resolve(parent_object, field_args, context)
end