We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c2864c commit 8893d15Copy full SHA for 8893d15
src/execution/execute.ts
@@ -627,15 +627,16 @@ function handleFieldError(
627
628
function hasNulledPosition(
629
errorPositions: Set<Path | undefined>,
630
- path: Path | undefined,
+ startPath: Path | undefined,
631
): boolean {
632
- if (errorPositions.has(path)) {
633
- return true;
634
- }
635
- if (path === undefined) {
636
- return false;
+ let path = startPath;
+ while (path !== undefined) {
+ if (errorPositions.has(path)) {
+ return true;
+ }
637
+ path = path.prev;
638
}
- return hasNulledPosition(errorPositions, path.prev);
639
+ return errorPositions.has(undefined);
640
641
642
/**
0 commit comments