@@ -138,6 +138,7 @@ class Executor<TMutation: MutationParameters> {
138
138
_operationTracker : OperationTracker ;
139
139
_operationUpdateEpochs : Map < string , number > ;
140
140
_optimisticUpdates : null | Array < OptimisticUpdate < TMutation >> ;
141
+ _useExecTimeResolvers : boolean ;
141
142
_pendingModulePayloadsCount : number ;
142
143
+ _getPublishQueue : ( actorIdentifier : ActorIdentifier ) = > PublishQueue ;
143
144
_shouldProcessClientComponents : ?boolean ;
@@ -193,6 +194,11 @@ class Executor<TMutation: MutationParameters> {
193
194
this . _operationTracker = operationTracker ;
194
195
this . _operationUpdateEpochs = new Map ( ) ;
195
196
this . _optimisticUpdates = null ;
197
+ this . _useExecTimeResolvers =
198
+ this . _operation . request . node . operation . use_exec_time_resolvers ??
199
+ this . _operation . request . node . operation . exec_time_resolvers_enabled_provider ?. get ( ) ===
200
+ true ??
201
+ false ;
196
202
this . _pendingModulePayloadsCount = 0 ;
197
203
this . _getPublishQueue = getPublishQueue ;
198
204
this . _scheduler = scheduler ;
@@ -617,6 +623,7 @@ class Executor<TMutation: MutationParameters> {
617
623
shouldProcessClientComponents : this . _shouldProcessClientComponents ,
618
624
treatMissingFieldsAsNull,
619
625
} ,
626
+ this . _useExecTimeResolvers ,
620
627
) ;
621
628
validateOptimisticResponsePayload ( payload ) ;
622
629
optimisticUpdates . push ( {
@@ -727,6 +734,7 @@ class Executor<TMutation: MutationParameters> {
727
734
treatMissingFieldsAsNull : this . _treatMissingFieldsAsNull ,
728
735
shouldProcessClientComponents : this . _shouldProcessClientComponents ,
729
736
} ,
737
+ this._useExecTimeResolvers,
730
738
);
731
739
}
732
740
@@ -810,6 +818,7 @@ class Executor<TMutation: MutationParameters> {
810
818
treatMissingFieldsAsNull : this . _treatMissingFieldsAsNull ,
811
819
shouldProcessClientComponents : this . _shouldProcessClientComponents ,
812
820
} ,
821
+ this . _useExecTimeResolvers ,
813
822
) ;
814
823
this . _getPublishQueueAndSaveActor ( ) . commitPayload (
815
824
this . _operation ,
@@ -1267,6 +1276,7 @@ class Executor<TMutation: MutationParameters> {
1267
1276
treatMissingFieldsAsNull : this . _treatMissingFieldsAsNull ,
1268
1277
shouldProcessClientComponents : this . _shouldProcessClientComponents ,
1269
1278
} ,
1279
+ this . _useExecTimeResolvers ,
1270
1280
) ;
1271
1281
this . _getPublishQueueAndSaveActor ( ) . commitPayload (
1272
1282
this . _operation ,
@@ -1487,14 +1497,20 @@ class Executor<TMutation: MutationParameters> {
1487
1497
record : nextParentRecord ,
1488
1498
fieldPayloads ,
1489
1499
} );
1490
- const relayPayload = this._normalizeResponse(response, selector, typeName, {
1491
- actorIdentifier : this . _actorIdentifier ,
1492
- getDataID : this . _getDataID ,
1493
- log : this . _log ,
1494
- path : [ ...normalizationPath , responseKey , String ( itemIndex ) ] ,
1495
- treatMissingFieldsAsNull : this . _treatMissingFieldsAsNull ,
1496
- shouldProcessClientComponents : this . _shouldProcessClientComponents ,
1497
- } );
1500
+ const relayPayload = this._normalizeResponse(
1501
+ response,
1502
+ selector,
1503
+ typeName,
1504
+ {
1505
+ actorIdentifier : this . _actorIdentifier ,
1506
+ getDataID : this . _getDataID ,
1507
+ log : this . _log ,
1508
+ path : [ ...normalizationPath , responseKey , String ( itemIndex ) ] ,
1509
+ treatMissingFieldsAsNull : this . _treatMissingFieldsAsNull ,
1510
+ shouldProcessClientComponents : this . _shouldProcessClientComponents ,
1511
+ } ,
1512
+ this._useExecTimeResolvers,
1513
+ );
1498
1514
return {
1499
1515
fieldPayloads ,
1500
1516
itemID ,
0 commit comments