Method: GraphQL::Schema::FieldExtension#resolve
- Defined in:
- lib/graphql/schema/field_extension.rb
#resolve(object:, arguments:, context:) {|object, arguments, memo| ... } ⇒ Object
Called before resolving #field. It should either:
yieldvalues to continue execution; OR- return something else to shortcut field execution.
Whatever this method returns will be used for execution.
133 134 135 |
# File 'lib/graphql/schema/field_extension.rb', line 133 def resolve(object:, arguments:, context:) yield(object, arguments, nil) end |