Sha256: b31fb487aa1f6107c0fcff9b1cff85020dac15af001d511e46bbed7ef909a9f5
Contents?: true
Size: 678 Bytes
Versions: 28
Compression:
Stored size: 678 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 synchronously. def run; end def run_isolated; yield; end def yield raise GraphQL::Error, "GraphQL::Dataloader is not running -- add `use GraphQL::Dataloader` to your schema to use Dataloader sources." end def append_job yield nil end end end end
Version data entries
28 entries across 28 versions & 1 rubygems