lib/graphql/schema.rb
def sync_lazy(value)
        lazy_method = lazy_method_name(value)
        if lazy_method
          synced_value = value.public_send(lazy_method)
          sync_lazy(synced_value)
        else
          value
        end
      end
# Override this method to handle lazy objects in a custom way.
# @param value [Object] an instance of a class registered with {.lazy_resolve}
# @return [Object] A GraphQL-ready (non-lazy) object
# @api private
Override this method to handle lazy objects in a custom way.
Override this method to handle lazy objects in a custom way .
def sync_lazy(value)
        lazy_method = lazy_method_name(value)
        if lazy_method
          synced_value = value.public_send(lazy_method)
          sync_lazy(synced_value)
        else
          value
        end
      end
def sync_lazy ( value ) lazy_method = lazy_method_name ( value ) if lazy_method synced_value = value . public_send ( lazy_method ) sync_lazy ( synced_value ) else value end end
Override this method to handle lazy objects in a custom way.
Override this method to handle lazy objects in a custom way .
A GraphQL-ready (non-lazy) object
A GraphQL - ready ( non - lazy ) object
Object
value
an instance of a class registered with {.lazy_resolve}
an instance of a class registered with { . lazy_resolve }
api
None