We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The RFC for oneOf input types is nearing completion and is in the phase of gathering feedback from libraries and users
oneOf
graphql-js and HotChocolate already have implemented this feature based on the RFC.
N/A
I imagine that an F# discriminated union, like this
type Cat = { Name: string; Meows: bool } type Dog = { Name: string; Barks: bool } type Pet = | DogPet of Dog | CatPet of Cat
could be mapped to a GraphQL oneOf input type, like this
input Cat { name: String meows: Boolean } input Dog { name: String barks: Boolean } input Pet @oneOf { dogPet: Dog catPet: Cat }
oneOf input type not supported.
Essentially none.
The text was updated successfully, but these errors were encountered:
Yep, this is doable. Would you like to help? I suppose we need #380 to be merged and on top of it we can add oneOf
Sorry, something went wrong.
No branches or pull requests
Description
The RFC for
oneOf
input types is nearing completion and is in the phase of gathering feedback from libraries and usersgraphql-js and HotChocolate already have implemented this feature based on the RFC.
Repro steps
N/A
Expected behavior
I imagine that an F# discriminated union, like this
could be mapped to a GraphQL oneOf input type, like this
Actual behavior
oneOf input type not supported.
Known workarounds
Essentially none.
Related information
N/A
The text was updated successfully, but these errors were encountered: