@@ -41,10 +41,10 @@ GetOperation(document, operationName):
41
41
* If {operationName} is {null}:
42
42
* If {document} contains exactly one operation.
43
43
* Return the Operation contained in the {document}.
44
- * Otherwise produce a request error requiring {operationName}.
44
+ * Otherwise raise a request error requiring {operationName}.
45
45
* Otherwise:
46
46
* Let {operation} be the Operation named {operationName} in {document}.
47
- * If {operation} was not found, produce a request error.
47
+ * If {operation} was not found, raise a request error.
48
48
* Return {operation}.
49
49
50
50
@@ -92,14 +92,14 @@ CoerceVariableValues(schema, operation, variableValues):
92
92
* Add an entry to {coercedValues} named {variableName} with the
93
93
value {defaultValue}.
94
94
* Otherwise if {variableType} is a Non-Nullable type, and either {hasValue}
95
- is not {true} or {value} is {null}, throw a request error.
95
+ is not {true} or {value} is {null}, raise a request error.
96
96
* Otherwise if {hasValue} is true:
97
97
* If {value} is {null}:
98
98
* Add an entry to {coercedValues} named {variableName} with the
99
99
value {null}.
100
100
* Otherwise:
101
101
* If {value} cannot be coerced according to the input coercion
102
- rules of {variableType}, throw a request error.
102
+ rules of {variableType}, raise a request error.
103
103
* Let {coercedValue} be the result of coercing {value} according to the
104
104
input coercion rules of {variableType}.
105
105
* Add an entry to {coercedValues} named {variableName} with the
@@ -253,7 +253,7 @@ CreateSourceEventStream(subscription, schema, variableValues, initialValue):
253
253
* Let {selectionSet} be the top level Selection Set in {subscription}.
254
254
* Let {groupedFieldSet} be the result of
255
255
{CollectFields(subscriptionType, selectionSet, variableValues)}.
256
- * If {groupedFieldSet} does not have exactly one entry, throw a request error.
256
+ * If {groupedFieldSet} does not have exactly one entry, raise a request error.
257
257
* Let {fields} be the value of the first entry in {groupedFieldSet}.
258
258
* Let {fieldName} be the name of the first entry in {fields}.
259
259
Note: This value is unaffected if an alias is used.
@@ -340,7 +340,7 @@ is explained in greater detail in the Field Collection section below.
340
340
341
341
** Errors and Non-Null Fields**
342
342
343
- If during {ExecuteSelectionSet()} a field with a non-null {fieldType} throws a
343
+ If during {ExecuteSelectionSet()} a field with a non-null {fieldType} raises a
344
344
field error then that error must propagate to this entire selection set, either
345
345
resolving to {null} if allowed or further propagated to a parent field.
346
346
@@ -590,7 +590,7 @@ CoerceArgumentValues(objectType, field, variableValues):
590
590
* Add an entry to {coercedValues} named {argumentName} with the
591
591
value {defaultValue}.
592
592
* Otherwise if {argumentType} is a Non-Nullable type, and either {hasValue}
593
- is not {true} or {value} is {null}, throw a field error.
593
+ is not {true} or {value} is {null}, raise a field error.
594
594
* Otherwise if {hasValue} is true:
595
595
* If {value} is {null}:
596
596
* Add an entry to {coercedValues} named {argumentName} with the
@@ -600,7 +600,7 @@ CoerceArgumentValues(objectType, field, variableValues):
600
600
value {value}.
601
601
* Otherwise:
602
602
* If {value} cannot be coerced according to the input coercion
603
- rules of {argumentType}, throw a field error.
603
+ rules of {argumentType}, raise a field error.
604
604
* Let {coercedValue} be the result of coercing {value} according to the
605
605
input coercion rules of {argumentType}.
606
606
* Add an entry to {coercedValues} named {argumentName} with the
@@ -645,12 +645,12 @@ CompleteValue(fieldType, fields, result, variableValues):
645
645
* Let {innerType} be the inner type of {fieldType}.
646
646
* Let {completedResult} be the result of calling
647
647
{CompleteValue(innerType, fields, result, variableValues)}.
648
- * If {completedResult} is {null}, throw a field error.
648
+ * If {completedResult} is {null}, raise a field error.
649
649
* Return {completedResult}.
650
650
* If {result} is {null} (or another internal value similar to {null} such as
651
651
{undefined}), return {null}.
652
652
* If {fieldType} is a List type:
653
- * If {result} is not a collection of values, throw a field error.
653
+ * If {result} is not a collection of values, raise a field error.
654
654
* Let {innerType} be the inner type of {fieldType}.
655
655
* Return a list where each list item is the result of calling
656
656
{CompleteValue(innerType, fields, resultItem, variableValues)}, where
@@ -716,13 +716,13 @@ MergeSelectionSets(fields):
716
716
717
717
### Errors and Non-Nullability
718
718
719
- If an error is thrown while resolving a field, it should be treated as though
719
+ If an error is raised while resolving a field, it should be treated as though
720
720
the field returned {null}, and an error must be added to the {"errors"} list
721
721
in the response.
722
722
723
723
If the result of resolving a field is {null} (either because the function to
724
724
resolve the field returned {null} or because an error occurred), and that
725
- field is of a ` Non-Null ` type, then a field error is thrown . The
725
+ field is of a ` Non-Null ` type, then a field error is raised . The
726
726
error must be added to the {"errors"} list in the response.
727
727
728
728
If the field returns {null} because of an error which has already been added to
0 commit comments