heftapp / graphql_codegen

MIT License
143 stars 53 forks source link

Support for the @oneOf directive #354

Closed tjarvstrand closed 1 month ago

tjarvstrand commented 3 months ago

The RFC for the new @oneOf directive is now basically just a formality away from being accepted into the GraphQL spec.

It would be great to see type level support for it in graphql_codegen.

BTW, thanks for an awesome library!

github-actions[bot] commented 3 months ago

👋 @tjarvstrand Thank you for raising an issue. I will investigate the issue and get back to you as soon as possible. Please make sure you have provided enough context.

This library is created and maintained by me, @budde377. Please consider supporting my work and ensure our survival by donating here.

budde377 commented 1 month ago

@oneOf should now generate different factories for each field. Please check it out and let me know what you think.