We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76f9a8d commit 00fc696Copy full SHA for 00fc696
1 file changed
src/execution/execute.ts
@@ -127,9 +127,11 @@ class CollectedErrors {
127
this._errorPositions = new Set<Path | undefined>();
128
this._errors = [];
129
}
130
+
131
get errors(): ReadonlyArray<GraphQLError> {
132
return this._errors;
133
134
135
add(error: GraphQLError, path: Path | undefined) {
136
// Do not modify errors list if a response position for this error has already been nulled.
137
// This check is unnecessary for implementations able to implement proper cancellation.
@@ -139,6 +141,7 @@ class CollectedErrors {
139
141
this._errorPositions.add(path);
140
142
this._errors.push(error);
143
144
145
private _hasNulledPosition(startPath: Path | undefined): boolean {
146
let path = startPath;
147
while (path !== undefined) {
0 commit comments