Module: GraphQL::Field::DefaultLazyResolve

Defined in:
lib/graphql/field.rb

Class Method Summary collapse

Class Method Details

.call(obj, args, ctx) ⇒ Object



324
325
326
327
# File 'lib/graphql/field.rb', line 324

def self.call(obj, args, ctx)
  method_name = ctx.schema.lazy_method_name(obj)
  obj.public_send(method_name)
end