-
How can I use Example: input PetInput @oneOf {
cat: CatInput
dog: DogInput
fish: FishInput
}
input CatInput { name: String!, numberOfLives: Int }
input DogInput { name: String!, wagsTail: Boolean }
input FishInput { name: String!, bodyLengthInMm: Int }
type Mutation {
addPet(pet: PetInput!): Pet
} Details: graphql/graphql-spec#825 |
Beta Was this translation helpful? Give feedback.
Answered by
hayes
Nov 16, 2022
Replies: 2 comments 7 replies
-
This is not yet a standardized feature, and has not landed in graphql-js, see graphql/graphql-js#3513 This will need to be supported in the underlying graphql implementation before it lands in Pothos |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bernhardw
-
@hayes Any update? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not yet a standardized feature, and has not landed in graphql-js, see graphql/graphql-js#3513
This will need to be supported in the underlying graphql implementation before it lands in Pothos