Module: GraphQL::Schema::BuildFromDefinition::DefaultResolve Private

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

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.call(type, field, obj, args, ctx) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


19
20
21
22
23
24
25
# File 'lib/graphql/schema/build_from_definition.rb', line 19

def self.call(type, field, obj, args, ctx)
  if field.arguments.any?
    obj.public_send(field.name, args, ctx)
  else
    obj.public_send(field.name)
  end
end