Skip to content

Commit 41bc274

Browse files
committed
polish(incrementalDelivery): filter function is always passed a path
1 parent 9997e98 commit 41bc274

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/execution/execute.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,7 +1995,7 @@ async function executeStreamIterator(
19951995
fieldNodes: ReadonlyArray<FieldNode>,
19961996
info: GraphQLResolveInfo,
19971997
itemType: GraphQLOutputType,
1998-
path?: Path,
1998+
path: Path,
19991999
label?: string,
20002000
parentContext?: AsyncPayloadRecord,
20012001
): Promise<void> {
@@ -2056,7 +2056,7 @@ async function executeStreamIterator(
20562056

20572057
function filterSubsequentPayloads(
20582058
exeContext: ExecutionContext,
2059-
nullPath: Path | undefined,
2059+
nullPath: Path,
20602060
currentAsyncRecord: AsyncPayloadRecord | undefined,
20612061
): void {
20622062
const nullPathArray = pathToArray(nullPath);

0 commit comments

Comments
 (0)