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 28, 2022
1 parent 71a8db4 commit 4df02ca
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 @@ -1948,7 +1948,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 4df02ca

Please sign in to comment.