Skip to content

Commit 6754e0a

Browse files
committed
Rename introspection fields to oneOf
1 parent 4111476 commit 6754e0a

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

spec/Section 3 -- Type System.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -944,8 +944,8 @@ type Query {
944944
}
945945
```
946946

947-
In schema introspection, the `__Field.oneArgument` field will return {true} for
948-
Oneof Fields, and {false} for all other Fields.
947+
In schema introspection, the `__Field.oneOf` field will return {true} for Oneof
948+
Fields, and {false} for all other Fields.
949949

950950
### Field Deprecation
951951

@@ -1499,7 +1499,7 @@ input UserUniqueCondition @oneOf {
14991499
}
15001500
```
15011501

1502-
In schema introspection, the `__Type.oneField` field will return {true} for
1502+
In schema introspection, the `__Type.oneOf` field will return {true} for
15031503
Oneof Input Objects, and {false} for all other Input Objects.
15041504

15051505
**Circular References**

spec/Section 4 -- Introspection.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ type __Type {
149149
ofType: __Type
150150

151151
# should be non-null for INPUT_OBJECT only
152-
oneField: Boolean
152+
oneOf: Boolean
153153
}
154154

155155
type __Field {
@@ -159,7 +159,7 @@ type __Field {
159159
type: __Type!
160160
isDeprecated: Boolean!
161161
deprecationReason: String
162-
oneArgument: Boolean!
162+
oneOf: Boolean!
163163
}
164164

165165
type __InputValue {
@@ -340,7 +340,7 @@ Fields
340340
* `name` must return a String.
341341
* `description` may return a String or {null}.
342342
* `inputFields`: a list of `InputValue`.
343-
* `oneField` must return {true} for Oneof Input Objects, {false} for all other
343+
* `oneOf` must return {true} for Oneof Input Objects, {false} for all other
344344
Input Objects.
345345
* All other fields must return {null}.
346346

@@ -386,8 +386,7 @@ Fields
386386
* `isDeprecated` returns {true} if this field should no longer be used,
387387
otherwise {false}.
388388
* `deprecationReason` optionally provides a reason why this field is deprecated.
389-
* `oneArgument` must return {true} for Oneof Fields, {false} for all other
390-
Fields.
389+
* `oneOf` must return {true} for Oneof Fields, {false} for all other Fields.
391390

392391

393392
### The __InputValue Type

0 commit comments

Comments
 (0)