@@ -8,7 +8,7 @@ import type {
8
8
GraphQLFormattedError ,
9
9
} from '../error/GraphQLError.js' ;
10
10
11
- import type { GroupedFieldSet } from './collectFields.js' ;
11
+ import type { DeferUsage , GroupedFieldSet } from './collectFields.js' ;
12
12
13
13
interface IncrementalUpdate < TData = unknown , TExtensions = ObjMap < unknown > > {
14
14
pending : ReadonlyArray < PendingResult > ;
@@ -786,6 +786,7 @@ export class DeferredGroupedFieldSetRecord {
786
786
/** @internal */
787
787
export class DeferredFragmentRecord {
788
788
path : ReadonlyArray < string | number > ;
789
+ deferUsage : DeferUsage ;
789
790
label : string | undefined ;
790
791
id : string | undefined ;
791
792
children : Set < SubsequentResultRecord > ;
@@ -795,9 +796,10 @@ export class DeferredFragmentRecord {
795
796
pendingSent ?: boolean ;
796
797
_pending : Set < DeferredGroupedFieldSetRecord > ;
797
798
798
- constructor ( opts : { path : Path | undefined ; label : string | undefined } ) {
799
+ constructor ( opts : { path : Path | undefined ; deferUsage : DeferUsage } ) {
799
800
this . path = pathToArray ( opts . path ) ;
800
- this . label = opts . label ;
801
+ this . label = opts . deferUsage . label ;
802
+ this . deferUsage = opts . deferUsage ;
801
803
this . children = new Set ( ) ;
802
804
this . filtered = false ;
803
805
this . deferredGroupedFieldSetRecords = new Set ( ) ;
0 commit comments