@oneOfSep 2025
A OneOf Input Object is a special variant of Input Object where exactly one field must be set and non-null, all others being omitted. This is useful for representing situations where an input may be one of many different options. Added in the September 2025 edition.
More info: https://spec.graphql.org/draft/#sec-OneOf-Input-Objects
Projects
| Project Name | Supported Since | Note |
|---|---|---|
| Apollo Client | N/A | |
| Apollo Kotlin | 4.0.0 | |
| Apollo Router | - | Requires support in apollo-rs (pr) |
| Apollo Server | ? | Know the status of this feature? Let us know! |
| Apollo iOS | 1.16.0 | |
| Domain Graph Service (DGS) Framework | 10.0.0 | Provided by GraphQL Java (discussion) |
| GraphQL Code Generator | ? | Know the status of this feature? Let us know! |
| GraphQL Java | 21.2 | |
| GraphQL Kotlin | ? | Know the status of this feature? Let us know! |
| GraphQL Yoga | 2.0.0 | Requires the envelop extended validation plugin. Read more. |
| GraphQL.js | 16.9.0 | |
| GraphiQL | ? | Know the status of this feature? Let us know! |
| Grats | 0.0.32 | |
| Hive Gateway | 1.0.0 | Requires the envelop extended validation plugin. [Read more.](https://github.com/graphql-hive/graphql-yoga/blob/main/packages/envelop/plugins/extended-validation/README.md |
| Hot Chocolate | 13.0.0 | |
| Relay | - | Merged but not yet released (pr) |
| Spring for GraphQL | ? | Know the status of this feature? Let us know! |
| gql.tada | 1.7.0 | |
| urql | N/A | urql does not perform schema validation or generate input object types; OneOf variables are sent as regular GraphQL variables. |