class GraphQL::Dataloader::RequestAll
See Source#request_all which returns an instance of this.
Public Class Methods
Source
# File lib/graphql/dataloader/request_all.rb, line 7 def initialize(source, keys) @source = source @keys = keys end
Public Instance Methods
Source
# File lib/graphql/dataloader/request_all.rb, line 20 def load @source.load_all(@keys) end
Call this method to cause the current Fiber to wait for the results of this request.
Returns
-
Array<Object>— One object for each ofkeys