class GraphQL::Dataloader::RequestAll

@see Source#request_all which returns an instance of this.

Public Class Methods

new(source, keys) click to toggle source
# File lib/graphql/dataloader/request_all.rb, line 6
def initialize(source, keys)
  @source = source
  @keys = keys
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 [Array<Object>] One object for each of `keys`

# File lib/graphql/dataloader/request_all.rb, line 14
def load
  @source.load_all(@keys)
end