Sha256: 9f2d087e5abc96e141e2519d1f221960c8dcc746d176e8c214ffbe916e8c7b30

Contents?: true

Size: 490 Bytes

Versions: 137

Compression:

Stored size: 490 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  class Dataloader
    # @see Source#request_all which returns an instance of this.
    class RequestAll < Request
      def initialize(source, keys)
        @source = source
        @keys = keys
      end

      # 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`
      def load
        @source.load_all(@keys)
      end
    end
  end
end

Version data entries

137 entries across 137 versions & 2 rubygems

Version Path
graphql-1.12.20 lib/graphql/dataloader/request_all.rb
graphql-1.12.19 lib/graphql/dataloader/request_all.rb
graphql-1.12.18 lib/graphql/dataloader/request_all.rb
graphql-1.12.17 lib/graphql/dataloader/request_all.rb
graphql-1.12.16 lib/graphql/dataloader/request_all.rb
graphql-1.12.15 lib/graphql/dataloader/request_all.rb
graphql-1.12.14 lib/graphql/dataloader/request_all.rb
graphql-1.12.13 lib/graphql/dataloader/request_all.rb
graphql-1.12.12 lib/graphql/dataloader/request_all.rb
graphql-1.12.11 lib/graphql/dataloader/request_all.rb
graphql-1.12.10 lib/graphql/dataloader/request_all.rb
graphql-1.12.9 lib/graphql/dataloader/request_all.rb
graphql-1.12.8 lib/graphql/dataloader/request_all.rb
graphql-1.12.7 lib/graphql/dataloader/request_all.rb
graphql-1.12.6 lib/graphql/dataloader/request_all.rb
graphql-1.12.5 lib/graphql/dataloader/request_all.rb
graphql-1.12.4 lib/graphql/dataloader/request_all.rb