From 47c2b2db84f280a1c81fcd575fbc9727a895f93f Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Wed, 28 Sep 2022 17:20:27 +0300 Subject: [PATCH] polish(incrementalDelivery): filter function is always passed a path --- src/execution/execute.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/execution/execute.ts b/src/execution/execute.ts index cfe405e38f..dee92293ae 100644 --- a/src/execution/execute.ts +++ b/src/execution/execute.ts @@ -1995,7 +1995,7 @@ async function executeStreamIterator( fieldNodes: ReadonlyArray, info: GraphQLResolveInfo, itemType: GraphQLOutputType, - path?: Path, + path: Path, label?: string, parentContext?: AsyncPayloadRecord, ): Promise { @@ -2056,7 +2056,7 @@ async function executeStreamIterator( function filterSubsequentPayloads( exeContext: ExecutionContext, - nullPath: Path | undefined, + nullPath: Path, currentAsyncRecord: AsyncPayloadRecord | undefined, ): void { const nullPathArray = pathToArray(nullPath);