Skip to content

Commit e8f6145

Browse files
authored
Apply suggestions from @eapache's review
1 parent 05fde06 commit e8f6145

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

spec/Section 3 -- Type System.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -926,8 +926,8 @@ Object, Interface, or Union type).
926926

927927
Oneof Fields are a special variant of Object Type fields where the type system
928928
asserts that exactly one of the field's arguments must be set and non-null, all
929-
others being omitted. This is useful for representing situations where an input
930-
may be one of many different options.
929+
others being omitted. This is useful for representing situations where a field
930+
provides more than one input option to accomplish the same (or similar) goal.
931931

932932
When using the type system definition language, the `@oneOf` directive is used
933933
to indicate that a Field is a Oneof Field (and thus requires exactly one of its
@@ -1664,7 +1664,7 @@ Literal Value | Variables | Coerced Value
16641664
`{ a: "abc", b: "123" }` | `{}` | Error: Exactly one key must be specified
16651665
`{ b: "123" }` | `{}` | Error: Incorrect value for member field {b}
16661666
`{ a: "abc" }` | `{}` | `{ a: "abc" }`
1667-
`{ b: $var }` | `{}` | Error: Exactly one key must be specified
1667+
`{ b: $var }` | `{}` | Error: Value for member field {b} must be specified
16681668
`$var` | `{ var: { a: "abc" } }` | `{ a: "abc" }`
16691669
`{ a: "abc", b: null }` | `{}` | Error: Exactly one key must be specified
16701670
`{ b: $var }` | `{ var: null }` | Error: Value for member field {b} must be non-null
@@ -1927,9 +1927,7 @@ provide:
19271927

19281928
- the `@deprecated` directive if representing deprecated portions of the
19291929
schema;
1930-
- the `@oneOf` directive if representing types that require exactly one field
1931-
(i.e. Oneof Input Objects) or fields that require exactly one argument (i.e.
1932-
Oneof Fields).
1930+
- the `@oneOf` directive if the schema contains Oneof Input Objects or Oneof Fields.
19331931

19341932
**Custom Directives**
19351933

0 commit comments

Comments
 (0)