File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -409,7 +409,6 @@ function collectFields(
409
409
visitedFragmentNames [ fragName ] = true ;
410
410
const fragment = exeContext . fragments [ fragName ] ;
411
411
if ( ! fragment ||
412
- ! shouldIncludeNode ( exeContext , fragment . directives ) ||
413
412
! doesFragmentConditionMatch ( exeContext , fragment , runtimeType ) ) {
414
413
continue ;
415
414
}
@@ -444,7 +443,7 @@ function shouldIncludeNode(
444
443
skipAST . arguments ,
445
444
exeContext . variableValues
446
445
) ;
447
- if ( skipIf ) {
446
+ if ( skipIf === true ) {
448
447
return false ;
449
448
}
450
449
}
@@ -459,7 +458,9 @@ function shouldIncludeNode(
459
458
includeAST . arguments ,
460
459
exeContext . variableValues
461
460
) ;
462
- return Boolean ( includeIf ) ;
461
+ if ( includeIf === false ) {
462
+ return false ;
463
+ }
463
464
}
464
465
465
466
return true ;
You can’t perform that action at this time.
0 commit comments