Sha256: e9fdb62670d2b9378d96594a6b3e976bd377c66511490ed76025884419375af6

Contents?: true

Size: 495 Bytes

Versions: 8

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

module GraphQL
  class Dataloader
    # The default implementation of dataloading -- all no-ops.
    #
    # The Dataloader interface isn't public, but it enables
    # simple internal code while adding the option to add Dataloader.
    class NullDataloader < Dataloader
      # These are all no-ops because code was
      # executed sychronously.
      def run; end
      def yield; end

      def append_job
        yield
        nil
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
graphql-1.12.11 lib/graphql/dataloader/null_dataloader.rb
graphql-1.12.10 lib/graphql/dataloader/null_dataloader.rb
graphql-1.12.9 lib/graphql/dataloader/null_dataloader.rb
graphql-1.12.8 lib/graphql/dataloader/null_dataloader.rb
graphql-1.12.7 lib/graphql/dataloader/null_dataloader.rb
graphql-1.12.6 lib/graphql/dataloader/null_dataloader.rb
graphql-1.12.5 lib/graphql/dataloader/null_dataloader.rb
graphql-1.12.4 lib/graphql/dataloader/null_dataloader.rb