Skip to content

Commit 0f19c3e

Browse files
committed
execution error -> request error (input coercion)
1 parent dddd4b8 commit 0f19c3e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/Section 3 -- Type System.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,25 +1699,25 @@ is constructed with the following rules:
16991699

17001700
- If a variable is provided for an input object field, the runtime value of that
17011701
variable must be used. If the runtime value is {null} and the field type is
1702-
non-null, an _execution error_ must be raised. If no runtime value is
1703-
provided, the variable definition's default value should be used. If the
1704-
variable definition does not provide a default value, the input object field
1702+
non-null, a _request error_ must be raised. If no runtime value is provided,
1703+
the variable definition's default value should be used. If the variable
1704+
definition does not provide a default value, the input object field
17051705
definition's default value should be used.
17061706

17071707
Further, if the input object is a _OneOf Input Object_, the following additional
17081708
rules apply:
17091709

17101710
- If the input object literal or unordered map does not contain exactly one
1711-
entry an _execution error_ must be raised.
1711+
entry a _request error_ must be raised.
17121712

17131713
- Within the input object literal or unordered map, if the single entry is the
1714-
{null} literal or {null} an _execution error_ must be raised.
1714+
{null} literal or {null} a _request error_ must be raised.
17151715

1716-
- If the coerced unordered map does not contain exactly one entry an _execution
1716+
- If the coerced unordered map does not contain exactly one entry a _request
17171717
error_ must be raised.
17181718

1719-
- If the value of the single entry in the coerced unordered map is {null} an
1720-
_execution error_ must be raised.
1719+
- If the value of the single entry in the coerced unordered map is {null} a
1720+
_request error_ must be raised.
17211721

17221722
Following are examples of input coercion for an input object type with a
17231723
`String` field `a` and a required (non-null) `Int!` field `b`:

0 commit comments

Comments
 (0)