Method: GraphQL::Schema::Resolver#resolve

Defined in:
lib/graphql/schema/resolver.rb

#resolve(**args) ⇒ Object

Do the work. Everything happens here.

Returns:

  • (Object)

    An object corresponding to the return type

Raises:



126
127
128
# File 'lib/graphql/schema/resolver.rb', line 126

def resolve(**args)
  raise GraphQL::RequiredImplementationMissingError, "#{self.class.name}#resolve should execute the field's logic"
end