class GraphQL::Dataloader::NullDataloader

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.

Public Instance Methods

append_job() { || ... } click to toggle source
# File lib/graphql/dataloader/null_dataloader.rb, line 16
def append_job
  yield
  nil
end
run() click to toggle source

These are all no-ops because code was executed sychronously.

# File lib/graphql/dataloader/null_dataloader.rb, line 12
def run; end
run_isolated() { || ... } click to toggle source
# File lib/graphql/dataloader/null_dataloader.rb, line 13
def run_isolated; yield; end
yield() click to toggle source
# File lib/graphql/dataloader/null_dataloader.rb, line 14
def yield; end