@graphql-eslint/eslint-plugin 3.16.1-alpha-20230226185341-ce14335 → 3.16.1-alpha-20230226234428-1796315

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.
@@ -80,6 +80,12 @@ function getReachableTypes(schema) {
80
80
  for (const node of schema.getDirectives()) {
81
81
  if (node.locations.some(location => RequestDirectiveLocations.has(location))) {
82
82
  reachableTypes.add(node.name);
83
+ for (const arg of node.args) {
84
+ const argTypeName = 'name' in arg.type && arg.type.name;
85
+ if (argTypeName) {
86
+ reachableTypes.add(argTypeName);
87
+ }
88
+ }
83
89
  }
84
90
  }
85
91
  reachableTypesCache = reachableTypes;
@@ -76,6 +76,12 @@ function getReachableTypes(schema) {
76
76
  for (const node of schema.getDirectives()) {
77
77
  if (node.locations.some(location => RequestDirectiveLocations.has(location))) {
78
78
  reachableTypes.add(node.name);
79
+ for (const arg of node.args) {
80
+ const argTypeName = 'name' in arg.type && arg.type.name;
81
+ if (argTypeName) {
82
+ reachableTypes.add(argTypeName);
83
+ }
84
+ }
79
85
  }
80
86
  }
81
87
  reachableTypesCache = reachableTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-eslint/eslint-plugin",
3
- "version": "3.16.1-alpha-20230226185341-ce14335",
3
+ "version": "3.16.1-alpha-20230226234428-1796315",
4
4
  "description": "GraphQL plugin for ESLint",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {