File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1578,7 +1578,7 @@ function completeListItemValue(
1578
1578
}
1579
1579
1580
1580
async function completePromisedListItemValue (
1581
- item : unknown ,
1581
+ item : Promise < unknown > ,
1582
1582
parent : GraphQLWrappedResult < Array < unknown > > ,
1583
1583
exeContext : ExecutionContext ,
1584
1584
itemType : GraphQLOutputType ,
@@ -1589,7 +1589,9 @@ async function completePromisedListItemValue(
1589
1589
deferMap : ReadonlyMap < DeferUsage , DeferredFragmentRecord > | undefined ,
1590
1590
) : Promise < unknown > {
1591
1591
try {
1592
- const resolved = await item ;
1592
+ const resolved = await ( exeContext . promiseCanceller ?. withCancellation (
1593
+ item ,
1594
+ ) ?? item ) ;
1593
1595
let completed = completeValue (
1594
1596
exeContext ,
1595
1597
itemType ,
@@ -2581,7 +2583,7 @@ function completeStreamItem(
2581
2583
fieldDetailsList ,
2582
2584
info ,
2583
2585
itemPath ,
2584
- item ,
2586
+ exeContext . promiseCanceller ?. withCancellation ( item ) ?? item ,
2585
2587
incrementalContext ,
2586
2588
new Map ( ) ,
2587
2589
) . then (
You can’t perform that action at this time.
0 commit comments