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

Codegen magic #5

Open
michal-murawski-90poe opened this issue Jan 24, 2023 · 0 comments
Open

Codegen magic #5

michal-murawski-90poe opened this issue Jan 24, 2023 · 0 comments

Comments

@michal-murawski-90poe
Copy link

michal-murawski-90poe commented Jan 24, 2023

We have an unutilized package in the package.json, @graphql-codegen/cli. Could we use it and generate the hooks and types?

Once done, could you devise a solution to have the ResultNode type inherit the type from the autogenerated code? Thanks to this approach, we will have only one source of truth for our API response type: graphql query 💪 💯

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

No branches or pull requests

1 participant