11import { AccumulatorMap } from '../jsutils/AccumulatorMap.js' ;
2- import type { Maybe } from '../jsutils/Maybe.js' ;
32import type { ObjMap } from '../jsutils/ObjMap.js' ;
43
54import type {
@@ -189,7 +188,6 @@ function collectFieldsImpl(
189188 selection ,
190189 variableValues ,
191190 fragmentVariableValues ,
192- hideSuggestions ,
193191 )
194192 ) {
195193 continue ;
@@ -208,7 +206,6 @@ function collectFieldsImpl(
208206 selection ,
209207 variableValues ,
210208 fragmentVariableValues ,
211- hideSuggestions ,
212209 ) ||
213210 ! doesFragmentConditionMatch ( schema , selection , runtimeType )
214211 ) {
@@ -255,7 +252,6 @@ function collectFieldsImpl(
255252 selection ,
256253 variableValues ,
257254 fragmentVariableValues ,
258- hideSuggestions ,
259255 )
260256 ) {
261257 continue ;
@@ -356,7 +352,6 @@ function shouldIncludeNode(
356352 node : FragmentSpreadNode | FieldNode | InlineFragmentNode ,
357353 variableValues : VariableValues ,
358354 fragmentVariableValues : VariableValues | undefined ,
359- hideSuggestions : Maybe < boolean > ,
360355) : boolean {
361356 const skipDirectiveNode = node . directives ?. find (
362357 ( directive ) => directive . name . value === GraphQLSkipDirective . name ,
@@ -371,7 +366,7 @@ function shouldIncludeNode(
371366 GraphQLSkipDirective . args ,
372367 variableValues ,
373368 fragmentVariableValues ,
374- hideSuggestions ,
369+ context . hideSuggestions ,
375370 )
376371 : undefined ;
377372 if ( skip ?. if === true ) {
@@ -391,7 +386,7 @@ function shouldIncludeNode(
391386 GraphQLIncludeDirective . args ,
392387 variableValues ,
393388 fragmentVariableValues ,
394- hideSuggestions ,
389+ context . hideSuggestions ,
395390 )
396391 : undefined ;
397392 if ( include ?. if === false ) {
0 commit comments