-
Notifications
You must be signed in to change notification settings - Fork 1.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 our terms of service and privacy 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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
src/pages/blog/2025-06-19-multioption-inputs-with-oneof/index.mdx
Outdated
Show resolved
Hide resolved
src/pages/blog/2025-06-19-multioption-inputs-with-oneof/index.mdx
Outdated
Show resolved
Hide resolved
src/pages/blog/2025-06-19-multioption-inputs-with-oneof/index.mdx
Outdated
Show resolved
Hide resolved
`@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 too https://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 to https://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, do GraphQL 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.
Co-authored-by: Patrick Arminio <[email protected]>
src/pages/blog/2025-06-19-multioption-inputs-with-oneof/index.mdx
Outdated
Show resolved
Hide resolved
Co-authored-by: Benedikt Franke <[email protected]>
I'd like to publish this once it is merged to the spec.