Skip to content

Commit

Permalink
Merge pull request #4139 from bhicks/master
Browse files Browse the repository at this point in the history
Update documentation
  • Loading branch information
rmosolgo committed Jul 16, 2022
2 parents 0df1879 + 3135e24 commit dac6685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/dataloader/sources.md
Expand Up @@ -21,7 +21,7 @@ Sources will receive two kinds of inputs from `GraphQL::Dataloader`:

Under the hood, each Source instance maintains a `key => object` cache.

- _batch parameters_, which are the basis of batched groups. For example, if you're loading records from different database tables, the the table name would be a batch parameter.
- _batch parameters_, which are the basis of batched groups. For example, if you're loading records from different database tables, the table name would be a batch parameter.

Batch parameters are given to `dataloader.with(source_class, *batch_parameters)`, and the default is _no batch parameters_. When you define a source, you should add the batch parameters to `def initialize(...)` and store them in instance variables.

Expand Down

0 comments on commit dac6685

Please sign in to comment.