We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e46382c commit 7d0fa38Copy full SHA for 7d0fa38
src/BatchedGraphQLClient.ts
@@ -20,9 +20,18 @@ export class BatchedGraphQLClient {
20
if (options && typeof options.cacheResults !== 'undefined') {
21
delete options.cacheResults
22
}
23
+
24
+ const maxBatchSize =
25
+ options && typeof options.maxBatchSize !== 'undefined'
26
+ ? options.maxBatchSize
27
+ : null
28
29
+ if (options && typeof options.maxBatchSize !== 'undefined') {
30
+ delete options.maxBatchSize
31
+ }
32
33
this.options = options || {}
- this.dataloader = new DataLoader(this.load, { cache })
34
+ this.dataloader = new DataLoader(this.load, { cache, maxBatchSize })
35
36
37
async request<T extends any>(
0 commit comments