Skip to content

Commit

Permalink
skip unnecessary filtering
Browse files Browse the repository at this point in the history
if the asyncIterator's next method throws, no incremental payloads for the result are possible, similar to completing an asyncIterator without stream
  • Loading branch information
yaacovCR committed Sep 20, 2022
1 parent 58eaf9d commit 0ab2256
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/execution/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1965,7 +1965,6 @@ async function executeStreamIteratorItem(
} catch (rawError) {
const error = locatedError(rawError, fieldNodes, pathToArray(itemPath));
const value = handleFieldError(error, itemType, asyncPayloadRecord.errors);
filterSubsequentPayloads(exeContext, itemPath, asyncPayloadRecord);
// don't continue if iterator throws
return { done: true, value };
}
Expand Down

0 comments on commit 0ab2256

Please sign in to comment.