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-2.4.9 lib/graphql/dataloader/request_all.rb
graphql-2.4.8 lib/graphql/dataloader/request_all.rb
graphql-2.4.7 lib/graphql/dataloader/request_all.rb
graphql-2.4.6 lib/graphql/dataloader/request_all.rb
graphql-2.4.5 lib/graphql/dataloader/request_all.rb
graphql-2.4.4 lib/graphql/dataloader/request_all.rb
graphql-2.4.3 lib/graphql/dataloader/request_all.rb
graphql-2.4.2 lib/graphql/dataloader/request_all.rb
graphql-2.4.1 lib/graphql/dataloader/request_all.rb
graphql-2.4.0 lib/graphql/dataloader/request_all.rb
graphql-2.3.20 lib/graphql/dataloader/request_all.rb
graphql-2.3.19 lib/graphql/dataloader/request_all.rb
graphql-2.3.18 lib/graphql/dataloader/request_all.rb
graphql-2.3.17 lib/graphql/dataloader/request_all.rb
graphql-2.3.16 lib/graphql/dataloader/request_all.rb
graphql-2.3.15 lib/graphql/dataloader/request_all.rb
graphql-2.3.14 lib/graphql/dataloader/request_all.rb
graphql-2.3.13 lib/graphql/dataloader/request_all.rb
graphql-2.3.12 lib/graphql/dataloader/request_all.rb
graphql-2.3.11 lib/graphql/dataloader/request_all.rb