@graphql-eslint/eslint-plugin 3.16.1-alpha-20230226185341-ce14335 → 3.16.1-alpha-20230226234428-1796315
Sign up to get free protection for your applications and to get access to all the features.
@@ -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