Using that solution my final schema .json is 35% smaller than the one generated by code-generator. And my final schema is part of the client bundle, so any BIT is important!
Describe the solution you'd like
Can we optimize like they did?
Describe alternatives you've considered
Maybe using options?
Additional context
I can use their solution, but it is very inconvenient especially in CI/CD environments where the GraphQL server is not active and I cannot verify the correct schema.
Is your feature request related to a problem? Please describe.
I'm using the below code (from here) because I need an introspection schema in my SPA web app:
The amazing team at Urql also created packages for optimization: https://formidable.com/open-source/urql/docs/graphcache/schema-awareness/#optimizing-a-schema.
Using that solution my final schema .json is 35% smaller than the one generated by code-generator. And my final schema is part of the client bundle, so any BIT is important!
Describe the solution you'd like
Can we optimize like they did?
Describe alternatives you've considered
Maybe using options?
Additional context
I can use their solution, but it is very inconvenient especially in CI/CD environments where the GraphQL server is not active and I cannot verify the correct schema.
Generating from
*.graphql
files is amazing!Thanks for your amazing work!