@graphql-codegen/typescript-react-query 3.3.2 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -33,7 +33,7 @@ function generateQueryKeyMaker(node, operationName, operationVariablesTypes, has
33
33
  return `\nuse${operationName}.getKey = (${signature}) => ${generateQueryKey(node, hasRequiredVariables)};\n`;
34
34
  }
35
35
  function generateMutationKey(node) {
36
- return `'${node.name.value}'`;
36
+ return `['${node.name.value}']`;
37
37
  }
38
38
  function generateMutationKeyMaker(node, operationName) {
39
39
  return `\nuse${operationName}.getKey = () => ${generateMutationKey(node)};\n`;
package/index.mjs CHANGED
@@ -27,7 +27,7 @@ function generateQueryKeyMaker(node, operationName, operationVariablesTypes, has
27
27
  return `\nuse${operationName}.getKey = (${signature}) => ${generateQueryKey(node, hasRequiredVariables)};\n`;
28
28
  }
29
29
  function generateMutationKey(node) {
30
- return `'${node.name.value}'`;
30
+ return `['${node.name.value}']`;
31
31
  }
32
32
  function generateMutationKeyMaker(node, operationName) {
33
33
  return `\nuse${operationName}.getKey = () => ${generateMutationKey(node)};\n`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-react-query",
3
- "version": "3.3.2",
3
+ "version": "3.4.0",
4
4
  "description": "GraphQL Code Generator plugin for generating a ready-to-use React-Query Hooks based on GraphQL operations",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"