Skip to content
New issue

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

Support for the @oneOf directive #354

Closed
tjarvstrand opened this issue Jul 4, 2024 · 2 comments · Fixed by #358
Closed

Support for the @oneOf directive #354

tjarvstrand opened this issue Jul 4, 2024 · 2 comments · Fixed by #358

Comments

@tjarvstrand
Copy link

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!

Copy link

github-actions bot commented Jul 4, 2024

👋 @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 added a commit that referenced this issue Aug 31, 2024
@budde377
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants