Skip to content

Commit 3832d8d

Browse files
committed
Replace 'query error' with 'request error'
1 parent 7a86a32 commit 3832d8d

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

spec/Section 3 -- Type System.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ information on the serialization of scalars in common JSON and other formats.
399399

400400
If a GraphQL service expects a scalar type as input to an argument, coercion
401401
is observable and the rules must be well defined. If an input value does not
402-
match a coercion rule, a query error must be raised.
402+
match a coercion rule, a request error must be raised.
403403

404404
GraphQL has different constant literals to represent integer and floating-point
405405
input values, and coercion rules may apply differently depending on which type
@@ -438,10 +438,10 @@ greater than or equal to 2<sup>31</sup>, a field error should be raised.
438438
**Input Coercion**
439439

440440
When expected as an input type, only integer input values are accepted. All
441-
other input values, including strings with numeric content, must raise a query
441+
other input values, including strings with numeric content, must raise a request
442442
error indicating an incorrect type. If the integer input value represents a
443443
value less than -2<sup>31</sup> or greater than or equal to 2<sup>31</sup>, a
444-
query error should be raised.
444+
request error should be raised.
445445

446446
Note: Numeric integer values larger than 32-bit should either use String or a
447447
custom-defined Scalar type, as not all platforms and transports support
@@ -470,9 +470,9 @@ Examples of this may include returning `1.0` for the integer number `1`, or
470470
When expected as an input type, both integer and float input values are
471471
accepted. Integer input values are coerced to Float by adding an empty
472472
fractional part, for example `1.0` for the integer input value `1`. All
473-
other input values, including strings with numeric content, must raise a query
473+
other input values, including strings with numeric content, must raise a request
474474
error indicating an incorrect type. If the integer input value represents a
475-
value not representable by IEEE 754, a query error should be raised.
475+
value not representable by IEEE 754, a request error should be raised.
476476

477477

478478
### String
@@ -494,7 +494,7 @@ string `"1"` for the integer `1`.
494494
**Input Coercion**
495495

496496
When expected as an input type, only valid UTF-8 string input values are
497-
accepted. All other input values must raise a query error indicating an
497+
accepted. All other input values must raise a request error indicating an
498498
incorrect type.
499499

500500

@@ -515,7 +515,7 @@ this may include returning `true` for non-zero numbers.
515515
**Input Coercion**
516516

517517
When expected as an input type, only boolean input values are accepted. All
518-
other input values must raise a query error indicating an incorrect type.
518+
other input values must raise a request error indicating an incorrect type.
519519

520520

521521
### ID
@@ -540,7 +540,7 @@ When coercion is not possible they must raise a field error.
540540
When expected as an input type, any string (such as `"4"`) or integer (such as
541541
`4` or `-4`) input value should be coerced to ID as appropriate for the ID
542542
formats a given GraphQL service expects. Any other input value, including float
543-
input values (such as `4.0`), must raise a query error indicating an incorrect
543+
input values (such as `4.0`), must raise a request error indicating an incorrect
544544
type.
545545

546546

@@ -1382,7 +1382,7 @@ reasonable coercion is not possible they must raise a field error.
13821382
**Input Coercion**
13831383

13841384
GraphQL has a constant literal to represent enum input values. GraphQL string
1385-
literals must not be accepted as an enum input and instead raise a query error.
1385+
literals must not be accepted as an enum input and instead raise a request error.
13861386

13871387
Query variable transport serializations which have a different representation
13881388
for non-string symbolic values (for example, [EDN](https://github.com/edn-format/edn))
@@ -1510,7 +1510,7 @@ type of an Object or Interface field.
15101510
**Input Coercion**
15111511

15121512
The value for an input object should be an input object literal or an unordered
1513-
map supplied by a variable, otherwise a query error must be thrown. In either
1513+
map supplied by a variable, otherwise a request error must be thrown. In either
15141514
case, the input object literal or unordered map must not contain any entries
15151515
with names not defined by a field of this input object type, otherwise an error
15161516
must be thrown.
@@ -1702,7 +1702,7 @@ the parent field. For more information on this process, see
17021702
If an argument or input-object field of a Non-Null type is not provided, is
17031703
provided with the literal value {null}, or is provided with a variable that was
17041704
either not provided a value at runtime, or was provided the value {null}, then
1705-
a query error must be raised.
1705+
a request error must be raised.
17061706

17071707
If the value provided to the Non-Null type is provided with a literal value
17081708
other than {null}, or a Non-Null variable value, it is coerced using the input

spec/Section 6 -- Execution.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ GetOperation(document, operationName):
4141
* If {operationName} is {null}:
4242
* If {document} contains exactly one operation.
4343
* Return the Operation contained in the {document}.
44-
* Otherwise produce a query error requiring {operationName}.
44+
* Otherwise produce a request error requiring {operationName}.
4545
* Otherwise:
4646
* Let {operation} be the Operation named {operationName} in {document}.
47-
* If {operation} was not found, produce a query error.
47+
* If {operation} was not found, produce a request error.
4848
* Return {operation}.
4949

5050

@@ -71,7 +71,7 @@ result to avoid validating the same request again in the future.
7171

7272
If the operation has defined any variables, then the values for
7373
those variables need to be coerced using the input coercion rules
74-
of variable's declared type. If a query error is encountered during
74+
of variable's declared type. If a request error is encountered during
7575
input coercion of variable values, then the operation fails without
7676
execution.
7777

@@ -92,14 +92,14 @@ CoerceVariableValues(schema, operation, variableValues):
9292
* Add an entry to {coercedValues} named {variableName} with the
9393
value {defaultValue}.
9494
* Otherwise if {variableType} is a Non-Nullable type, and either {hasValue}
95-
is not {true} or {value} is {null}, throw a query error.
95+
is not {true} or {value} is {null}, throw a request error.
9696
* Otherwise if {hasValue} is true:
9797
* If {value} is {null}:
9898
* Add an entry to {coercedValues} named {variableName} with the
9999
value {null}.
100100
* Otherwise:
101101
* If {value} cannot be coerced according to the input coercion
102-
rules of {variableType}, throw a query error.
102+
rules of {variableType}, throw a request error.
103103
* Let {coercedValue} be the result of coercing {value} according to the
104104
input coercion rules of {variableType}.
105105
* Add an entry to {coercedValues} named {variableName} with the
@@ -252,7 +252,7 @@ CreateSourceEventStream(subscription, schema, variableValues, initialValue):
252252
* Assert: {subscriptionType} is an Object type.
253253
* Let {groupedFieldSet} be the result of
254254
{CollectFields(subscriptionType, selectionSet, variableValues)}.
255-
* If {groupedFieldSet} does not have exactly one entry, throw a query error.
255+
* If {groupedFieldSet} does not have exactly one entry, throw a request error.
256256
* Let {fields} be the value of the first entry in {groupedFieldSet}.
257257
* Let {fieldName} be the name of the first entry in {fields}.
258258
Note: This value is unaffected if an alias is used.

0 commit comments

Comments
 (0)