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

Only generate used types when generateSchema is true #4471

Merged
merged 2 commits into from
Oct 21, 2022

Conversation

martinbonnin
Copy link
Contributor

When using data builders, this was generating builders for all types in the schema, even the unused ones.

This is potentially breaking for anyone relying on unused types (not sure what the use case for this would be?). But there's a simple workaround if it's really needed. I'll start a changelog to make sure we do not forget about it

@netlify
Copy link

netlify bot commented Oct 20, 2022

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit 299667d
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/635261e9a2ee4500086b7655

Copy link
Contributor

@BoD BoD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@martinbonnin martinbonnin merged commit 02db51a into main Oct 21, 2022
@martinbonnin martinbonnin deleted the only-used-types branch October 21, 2022 10:32
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 this pull request may close these issues.

2 participants