module GraphQL::Field::DefaultLazyResolve
Public Class Methods
call(obj, args, ctx)
click to toggle source
# File lib/graphql/field.rb, line 324 def self.call(obj, args, ctx) method_name = ctx.schema.lazy_method_name(obj) next_obj = obj.public_send(method_name) if ctx.schema.lazy?(next_obj) call(next_obj, args, ctx) else next_obj end end