Module: GraphQL::Field::DefaultLazyResolve

Defined in:
lib/graphql/field.rb

Class Method Summary collapse

Class Method Details

.call(obj, args, ctx) ⇒ Object



307
308
309
310
# File 'lib/graphql/field.rb', line 307

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