@@ -926,8 +926,8 @@ Object, Interface, or Union type).
926
926
927
927
Oneof Fields are a special variant of Object Type fields where the type system
928
928
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 .
931
931
932
932
When using the type system definition language, the ` @oneOf ` directive is used
933
933
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
1664
1664
`{ a : "abc" , b : "123" }` | `{}` | Error : Exactly one key must be specified
1665
1665
`{ b : "123" }` | `{}` | Error : Incorrect value for member field {b }
1666
1666
`{ 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
1668
1668
`$var ` | `{ var : { a : "abc" } }` | `{ a : "abc" }`
1669
1669
`{ a : "abc" , b : null }` | `{}` | Error : Exactly one key must be specified
1670
1670
`{ b : $var }` | `{ var : null }` | Error : Value for member field {b } must be non -null
@@ -1927,9 +1927,7 @@ provide:
1927
1927
1928
1928
- the ` @deprecated ` directive if representing deprecated portions of the
1929
1929
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.
1933
1931
1934
1932
** Custom Directives**
1935
1933
0 commit comments