Module: GraphQL::Field::DefaultLazyResolve

Defined in:
lib/graphql/field.rb

Class Method Summary collapse

Class Method Details

.call(obj, args, ctx) ⇒ Object


321
322
323
324
# File 'lib/graphql/field.rb', line 321

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