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 4ba281e commit 1fa81c0Copy full SHA for 1fa81c0
src/validation/rules/MaxIntrospectionDepthRule.ts
@@ -32,11 +32,13 @@ export function MaxIntrospectionDepthRule(
32
(node.name.value === 'fields' ||
33
node.name.value === 'interfaces' ||
34
node.name.value === 'possibleTypes' ||
35
- node.name.value === 'inputFields') &&
36
- // eslint-disable-next-line no-param-reassign
37
- ++depth >= MAX_LISTS_DEPTH
+ node.name.value === 'inputFields')
38
) {
39
- return true;
+ // eslint-disable-next-line no-param-reassign
+ depth++;
+ if (depth >= MAX_LISTS_DEPTH) {
40
+ return true;
41
+ }
42
}
43
44
// handles fields and inline fragments
0 commit comments