@@ -16,6 +16,7 @@ import {
1616 typeFromAST ,
1717} from 'graphql' ;
1818
19+ import type { Maybe } from '../jsutils/Maybe' ;
1920import type { ObjMap } from '../jsutils/ObjMap' ;
2021
2122import { GraphQLDeferDirective } from '../type/index' ;
@@ -47,7 +48,7 @@ export function collectFields(
4748 variableValues : { [ variable : string ] : unknown } ,
4849 runtimeType : GraphQLObjectType ,
4950 selectionSet : SelectionSetNode ,
50- ignoreDefer = false ,
51+ ignoreDefer ?: Maybe < boolean > ,
5152) : FieldsAndPatches {
5253 const fields = new Map ( ) ;
5354 const patches : Array < PatchFields > = [ ] ;
@@ -81,7 +82,7 @@ export function collectSubfields(
8182 variableValues : { [ variable : string ] : unknown } ,
8283 returnType : GraphQLObjectType ,
8384 fieldNodes : ReadonlyArray < FieldNode > ,
84- ignoreDefer = false ,
85+ ignoreDefer ?: Maybe < boolean > ,
8586) : FieldsAndPatches {
8687 const subFieldNodes = new Map ( ) ;
8788 const subPatches : Array < PatchFields > = [ ] ;
@@ -116,7 +117,7 @@ function collectFieldsImpl(
116117 fields : Map < string , Array < FieldNode > > ,
117118 patches : Array < PatchFields > ,
118119 visitedFragmentNames : Set < string > ,
119- ignoreDefer : boolean ,
120+ ignoreDefer ?: Maybe < boolean > ,
120121) : void {
121122 for ( const selection of selectionSet . selections ) {
122123 switch ( selection . kind ) {
0 commit comments