Replies: 1 comment 2 replies
-
Hey @kioan000, I don't have bandwidth to work on that myself, but I would be happy to review PRs if you or someone else would like to tackle it! I'm not sure off the top of my head whether we would have access to that annotation in the introspection schema or not, so that would be probably a good first thing to check to see if it's viable to build something like this. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! 👋 First of all, thanks for your work on this library — we’ve been using it with great results.
We were wondering if there’s any interest or plan to support the GraphQL @OneOf directive in a way that maps to native Elm types — for example by generating a union type when a @OneOf input object is detected in the schema.
This would allow more type-safe modeling and better ergonomics when consuming GraphQL APIs that use @OneOf semantics (which is now being adopted by tools like Apollo Federation and OpenAPI-to-GraphQL converters).
Would this be something you’d consider supporting ?
Thanks again!
Some references:
Beta Was this translation helpful? Give feedback.
All reactions