Skip to content

Commit 6310475

Browse files
committed
Use 'execution error' and 'raise' rather than throw an error
1 parent d15f7bb commit 6310475

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec/Section 3 -- Type System.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,16 +1687,16 @@ Further, if the input object is a OneOf Input Object, the following additional
16871687
rules apply:
16881688

16891689
- If the input object literal or unordered map does not contain exactly one
1690-
entry an error must be thrown.
1690+
entry an _execution error_ must be raised.
16911691

1692-
- Within the input object literal or unordered map, if the single entry is
1693-
{null} or the {null} literal an error must be thrown.
1692+
- Within the input object literal or unordered map, if the single entry is the
1693+
{null} literal or {null} an _execution error_ must be raised.
16941694

1695-
- If the coerced unordered map does not contain exactly one entry an error must
1696-
be thrown.
1695+
- If the coerced unordered map does not contain exactly one entry an _execution
1696+
error_ must be raised.
16971697

16981698
- If the value of the single entry in the coerced unordered map is {null} an
1699-
error must be thrown.
1699+
_execution error_ must be raised.
17001700

17011701
Following are examples of input coercion for an input object type with a
17021702
`String` field `a` and a required (non-null) `Int!` field `b`:
@@ -1727,7 +1727,7 @@ input ExampleInputObject {
17271727
| `{ b: $var }` | `{ var: null }` | Error: {b} must be non-null. |
17281728
| `{ b: 123, c: "xyz" }` | `{}` | Error: Unexpected field {c} |
17291729

1730-
Following are examples of input coercion for a oneOf input object type with a
1730+
Following are examples of input coercion for a OneOf Input Object type with a
17311731
`String` member field `a` and an `Int` member field `b`:
17321732

17331733
```graphql example

0 commit comments

Comments
 (0)