@@ -599,15 +599,15 @@ section.
599
599
<!-- Legacy link, this section was previously titled "Errors and Non-Null Fields" -->
600
600
</a >
601
601
602
- If during {ExecuteCollectedFields()} a _ response position_ with a non-null type
602
+ If during {ExecuteCollectedFields()} a _ execution position_ with a non-null type
603
603
raises an _ execution error_ then that error must propagate to the parent
604
- response position (the entire selection set in the case of a field, or the
604
+ execution position (the entire selection set in the case of a field, or the
605
605
entire list in the case of a list position), either resolving to {null} if
606
- allowed or being further propagated to a parent response position.
606
+ allowed or being further propagated to a parent execution position.
607
607
608
- If this occurs, any sibling response positions which have not yet executed or
608
+ If this occurs, any sibling execution positions which have not yet executed or
609
609
have not yet yielded a value may be cancelled to avoid unnecessary work. Any
610
- errors raised by these sibling response positions must not be added to the
610
+ errors raised by these sibling execution positions must not be added to the
611
611
{"errors"} list in the _ execution result_ .
612
612
613
613
Note: See [ Handling Execution Errors] ( #sec-Handling-Execution-Errors ) for more
@@ -904,45 +904,45 @@ ResolveAbstractType(abstractType, objectValue):
904
904
</a >
905
905
906
906
An _ execution error_ is an error raised during field execution, value resolution
907
- or coercion, at a specific _ response position_ . While these errors must be
907
+ or coercion, at a specific _ execution position_ . While these errors must be
908
908
reported in the response, they are "handled" by producing partial {"data"} in
909
909
the _ response_ .
910
910
911
911
Note: This is distinct from a _ request error_ which results in a _ request error
912
912
result_ with no data.
913
913
914
914
If an execution error is raised while resolving a field (either directly or
915
- nested inside any lists), it is handled as though the _ response position_ at
915
+ nested inside any lists), it is handled as though the _ execution position_ at
916
916
which the error occurred resolved to {null}, and the error must be added to the
917
917
{"errors"} list in the _ execution result_ .
918
918
919
- If the result of resolving a _ response position_ is {null} (either due to the
919
+ If the result of resolving a _ execution position_ is {null} (either due to the
920
920
result of {ResolveFieldValue()} or because an execution error was raised), and
921
921
that position is of a ` Non-Null ` type, then an execution error is raised at that
922
922
position. The error must be added to the {"errors"} list in the _ execution
923
923
result_ .
924
924
925
- If a _ response position_ resolves to {null} because of an execution error which
925
+ If a _ execution position_ resolves to {null} because of an execution error which
926
926
has already been added to the {"errors"} list in the _ execution result_ , the
927
- {"errors"} list must not be further affected. If a sibling field of a response
927
+ {"errors"} list must not be further affected. If a sibling field of an execution
928
928
position that triggered error propagation also raises an error, this additional
929
929
error must not be added to the {"errors"} list.
930
930
931
931
Note: The result of the above is that exactly one error must be added to the
932
932
{"errors"} list for each {null} appearing in the _ execution response_ because of
933
933
an error (including due to error propagation).
934
934
935
- Since ` Non-Null ` response positions cannot be {null}, execution errors are
936
- propagated to be handled by the parent _ response position_ . If the parent
937
- response position may be {null} then it resolves to {null}, otherwise if it is a
938
- ` Non-Null ` type, the execution error is further propagated to its parent
939
- _ response position_ .
935
+ Since ` Non-Null ` execution positions cannot be {null}, execution errors are
936
+ propagated to be handled by the parent _ execution position_ . If the parent
937
+ execution position may be {null} then it resolves to {null}, otherwise if it is
938
+ a ` Non-Null ` type, the execution error is further propagated to its parent
939
+ _ execution position_ .
940
940
941
- If a ` List ` type wraps a ` Non-Null ` type, and one of the _ response position_
942
- elements of that list resolves to {null}, then the entire list _ response
941
+ If a ` List ` type wraps a ` Non-Null ` type, and one of the _ execution position_
942
+ elements of that list resolves to {null}, then the entire list _ execution
943
943
position_ must resolve to {null}. If the ` List ` type is also wrapped in a
944
944
` Non-Null ` , the execution error continues to propagate upwards.
945
945
946
- If every _ response position_ from the root of the request to the source of the
946
+ If every _ execution position_ from the root of the request to the source of the
947
947
execution error has a ` Non-Null ` type, then the {"data"} entry in the _ execution
948
948
result_ should be {null}.
0 commit comments