Sha256: 9bc6c92a3f5c21187995bed29b311bc2a3e0865b4cd57ae67de15ce9c7453c82

Contents?: true

Size: 530 Bytes

Versions: 39

Compression:

Stored size: 530 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 run_isolated; yield; end
      def yield; end

      def append_job
        yield
        nil
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
graphql-1.13.23 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.22 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.21 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.20 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.19 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.18 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.17 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.16 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.15 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.14 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.13 lib/graphql/dataloader/null_dataloader.rb
graphql_cody-1.13.0 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.12 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.11 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.10 lib/graphql/dataloader/null_dataloader.rb
graphql-2.0.0 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.9 lib/graphql/dataloader/null_dataloader.rb
graphql-1.12.24 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.8 lib/graphql/dataloader/null_dataloader.rb
graphql-1.13.7 lib/graphql/dataloader/null_dataloader.rb