r/graphlinkdotdev • • 14d ago

New video in the Dart series: GraphQL codegen for huge schemas.

By default GraphLink generates a method for every query, mutation and subscription in your schema. For schemas like GitHub, GitLab or Shopify that is a lot of code you won't use. Set autoGenerateQueries to false in the config and it only generates the operations you declare yourself, in any file you list in the config.

🎥 Video: https://youtu.be/MwoNFNJZHj4

📝 Write-up: https://medium.com/@graphlinkdev/graphql-codegen-for-huge-schemas-in-dart-turn-off-auto-generated-queries-9f5226cf8a6e

💻 Code: https://github.com/Oualitsen/graphlink-demos

For a big GraphQL schema, do you generate everything and ignore most of it, or do you declare only the operations you use?

1 Upvotes

0 comments sorted by