class GraphQL::Dataloader::Request
@see Source#request which returns an instance of this
def initialize(source, key)
def initialize(source, key) @source = source @key = key end
def load
-
(Object)
- the object loaded for `key`
def load @source.load(@key) end
def load_with_deprecation_warning
def load_with_deprecation_warning warn("Returning `.request(...)` from GraphQL::Dataloader is deprecated, use `.load(...)` instead. (See usage of #{@source} with #{@key.inspect}).") load end