Skip to content

Commit 6e44e3a

Browse files
committed
add comment regarding stream terminators
1 parent c22cd01 commit 6e44e3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/execution/execute.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2085,6 +2085,8 @@ function firstSyncStreamItems(
20852085
}
20862086

20872087
currentIndex = results.length - 1;
2088+
// If a non-reconcilable stream items result was encountered, then the stream terminates in error.
2089+
// Otherwise, add a stream terminator.
20882090
let currentResult = erroredSynchronously
20892091
? results[currentIndex]
20902092
: prependNextStreamItems(results[currentIndex], {

0 commit comments

Comments
 (0)