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 a02ea11 commit 590d64dCopy full SHA for 590d64d
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "batched-graphql-request",
3
- "version": "0.3.0",
+ "version": "0.4.0",
4
"main": "dist/src/index.js",
5
"typings": "./dist/src/index.d.ts",
6
"files": [
src/index.ts
@@ -18,10 +18,12 @@ export class BatchedGraphQLClient {
18
async request<T extends any> (
19
query: string,
20
variables?: Variables,
21
+ operationName?: string,
22
): Promise<T> {
23
const body = JSON.stringify({
24
query,
25
variables: variables ? variables : undefined,
26
+ operationName: operationName ? operationName : undefined
27
})
28
return this.dataloader.load(body)
29
}
0 commit comments