Skip to content

Commit 6a6be52

Browse files
committed
Rename __Type.oneOf to __Type.isOneOf
1 parent 05ab541 commit 6a6be52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/Section 3 -- Type System.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ input UserUniqueCondition @oneOf {
15391539
}
15401540
```
15411541

1542-
In schema introspection, the `__Type.oneOf` field will return {true} for OneOf
1542+
In schema introspection, the `__Type.isOneOf` field will return {true} for OneOf
15431543
Input Objects, and {false} for all other Input Objects.
15441544

15451545
**Circular References**

spec/Section 4 -- Introspection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ type __Type {
151151
# may be non-null for custom SCALAR, otherwise null.
152152
specifiedByURL: String
153153
# should be non-null for INPUT_OBJECT only
154-
oneOf: Boolean
154+
isOneOf: Boolean
155155
}
156156

157157
enum __TypeKind {
@@ -369,7 +369,7 @@ Fields\:
369369
- `name` must return a String.
370370
- `description` may return a String or {null}.
371371
- `inputFields` must return the set of input fields as a list of `__InputValue`.
372-
- `oneOf` must return {true} when representing a OneOf Input Object, {false}
372+
- `isOneOf` must return {true} when representing a OneOf Input Object, {false}
373373
otherwise.
374374
- All other fields must return {null}.
375375

0 commit comments

Comments
 (0)