Skip to content

Commit 2998f7d

Browse files
committed
Use the correct error for the situation
1 parent 47cbe95 commit 2998f7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/Section 3 -- Type System.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,9 +1699,9 @@ 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, 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
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
17051705
definition's default value should be used.
17061706

17071707
Further, if the input object is a _OneOf Input Object_, the following additional
@@ -1712,7 +1712,7 @@ rules apply:
17121712
the {null} literal, otherwise a _request error_ must be raised.
17131713

17141714
- The map resulting from the input coercion rules above must contain exactly one
1715-
entry and the value for that entry must not be {null}, otherwise a _request
1715+
entry and the value for that entry must not be {null}, otherwise an _execution
17161716
error_ must be raised.
17171717

17181718
Following are examples of input coercion for an input object type with a

0 commit comments

Comments
 (0)