-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
Is your feature request related to a problem? Please describe.
Hello,
I just wanted to flag that the typescript and schema-ast plugins don't seem to fully support the @oneOf directive for input types.
I have an example repository here with a minimal reproduction of the issue I'm facing.
The backend (GraphQL Ruby - docs) correctly adds the @oneof to an input, but the code generated ignores it.
schema-ast plugin output:
typescript plugin output:
codegen configs:
Describe the solution you'd like
I was hoping that it would output a TypeScript discriminated union as well as include the @oneof directive in the generated schema. I saw this issue which talked about (an imaginary?) config but couldn't see it documented / not sure if it's real.
Describe alternatives you've considered
No response
Any additional important details?
No response
Metadata
Metadata
Assignees
Labels
No labels