class GraphQL::Dataloader::Request
@see Source#request
which returns an instance of this
Public Class Methods
new(source, key)
click to toggle source
# File lib/graphql/dataloader/request.rb, line 6 def initialize(source, key) @source = source @key = key end
Public Instance Methods
load()
click to toggle source
Call this method to cause the current Fiber to wait for the results of this request.
@return [Object] the object loaded for `key`
# File lib/graphql/dataloader/request.rb, line 14 def load @source.load(@key) end