Class: GraphQL::Dataloader::NullDataloader
- Inherits:
-
GraphQL::Dataloader
- Object
- GraphQL::Dataloader
- GraphQL::Dataloader::NullDataloader
- Defined in:
- lib/graphql/dataloader/null_dataloader.rb
Overview
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.
Instance Attribute Summary
Attributes inherited from GraphQL::Dataloader
#context, #current_runtime, #yielded_fibers
Instance Method Summary collapse
-
#enqueue ⇒ Object
-
#run ⇒ Object
These are all no-ops because code was executed sychronously.
-
#yield ⇒ Object
-
#yielded?(_path) ⇒ Boolean
Methods inherited from GraphQL::Dataloader
Constructor Details
This class inherits a constructor from GraphQL::Dataloader
Instance Method Details
#enqueue ⇒ Object
10 11 12 |
# File 'lib/graphql/dataloader/null_dataloader.rb', line 10 def enqueue yield end |
#run ⇒ Object
These are all no-ops because code was executed sychronously.
16 |
# File 'lib/graphql/dataloader/null_dataloader.rb', line 16 def run; end |
#yield ⇒ Object
17 |
# File 'lib/graphql/dataloader/null_dataloader.rb', line 17 def yield; end |
#yielded?(_path) ⇒ Boolean
18 |
# File 'lib/graphql/dataloader/null_dataloader.rb', line 18 def yielded?(_path); false; end |