File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,11 @@ class CollectedErrors {
127127 this . _errorPositions = new Set < Path | undefined > ( ) ;
128128 this . _errors = [ ] ;
129129 }
130+
130131 get errors ( ) : ReadonlyArray < GraphQLError > {
131132 return this . _errors ;
132133 }
134+
133135 add ( error : GraphQLError , path : Path | undefined ) {
134136 // Do not modify errors list if a response position for this error has already been nulled.
135137 // This check is unnecessary for implementations able to implement proper cancellation.
@@ -139,6 +141,7 @@ class CollectedErrors {
139141 this . _errorPositions . add ( path ) ;
140142 this . _errors . push ( error ) ;
141143 }
144+
142145 private _hasNulledPosition ( startPath : Path | undefined ) : boolean {
143146 let path = startPath ;
144147 while ( path !== undefined ) {
You can’t perform that action at this time.
0 commit comments