Skip to content

Commit

Permalink
polish(incrementalDelivery): filter function is always passed a path
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Sep 28, 2022
1 parent b57fdf4 commit 47c2b2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/execution/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,7 @@ async function executeStreamIterator(
fieldNodes: ReadonlyArray<FieldNode>,
info: GraphQLResolveInfo,
itemType: GraphQLOutputType,
path?: Path,
path: Path,
label?: string,
parentContext?: AsyncPayloadRecord,
): Promise<void> {
Expand Down Expand Up @@ -2056,7 +2056,7 @@ async function executeStreamIterator(

function filterSubsequentPayloads(
exeContext: ExecutionContext,
nullPath: Path | undefined,
nullPath: Path,
currentAsyncRecord: AsyncPayloadRecord | undefined,
): void {
const nullPathArray = pathToArray(nullPath);
Expand Down

0 comments on commit 47c2b2d

Please sign in to comment.