@graphcommerce/graphql-mesh 9.0.0-canary.73 → 9.0.0-canary.74

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.74
4
+
3
5
  ## 9.0.0-canary.73
4
6
 
5
7
  ## 9.0.0-canary.72
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/graphql-mesh",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.73",
5
+ "version": "9.0.0-canary.74",
6
6
  "main": "index.ts",
7
7
  "dependencies": {
8
8
  "@graphql-mesh/apollo-link": "latest",
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@apollo/client": "^3",
38
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.73",
39
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.73",
40
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.73",
38
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.74",
39
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.74",
40
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.74",
41
41
  "graphql": "^16.7.1"
42
42
  },
43
43
  "devDependencies": {
@@ -40,3 +40,7 @@ export function traverseSelectionSet<Q>(incomingSelectionSet: SelectionSetNode,
40
40
 
41
41
  return selectionSet
42
42
  }
43
+
44
+ export function hasSelectionSetPath<Q>(selectionSet: SelectionSetNode, path: Path<Q>): boolean {
45
+ return traverseSelectionSet<Q>(selectionSet, path).selections.length > 0
46
+ }