- Notifications
You must be signed in to change notification settings - Fork1.5k
Add oneOf blog post#2011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:source
Are you sure you want to change the base?
Add oneOf blog post#2011
Uh oh!
There was an error while loading.Please reload this page.
Conversation
vercelbot commentedJun 6, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The latest updates on your projects. Learn more aboutVercel for Git ↗︎
|
src/pages/blog/2025-06-19-multioption-inputs-with-oneof/index.mdx OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/pages/blog/2025-06-19-multioption-inputs-with-oneof/index.mdx OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/pages/blog/2025-06-19-multioption-inputs-with-oneof/index.mdx OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
`@oneOf` is already available in the following implementations of GraphQL: | ||
- GraphQL.js v16+ | ||
- GraphQL Ruby v2.0.21+ | ||
- GraphQL.NET v8+ | ||
- GraphQL Java v21.2+ | ||
- HotChocolate v16.0.0+ | ||
- Probably others! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
@graphql/implementers If you already support@oneOf
, please let me know!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
https://strawberry.rocks/docs/types/input-types#one-of-input-types we support it :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
GraphQL core does toohttps://github.com/graphql-python/graphql-core
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
We just added support tohttps://github.com/webonyx/graphql-php.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks@patrick91 and@spawnia; fancy adding suggestions in the style of the others (i.e. with version numbers)? For GraphQL Core, doGraphQL Core (python)
or similar to make it clear to readers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
So does Yoga and Hive Gateway!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks@enisdenjo! I'm currently only listing GraphQL implementations otherwise the list would get too long! Most things that consumes one of these implementations should support@oneOf
by extension.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Patrick Arminio <patrick.arminio@gmail.com>
src/pages/blog/2025-06-19-multioption-inputs-with-oneof/index.mdx OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Benedikt Franke <benedikt@franke.tech>
I'd like to publish this once it is merged to the spec.