r/graphlinkdotdev • u/graphlinkdev • 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
💻 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