timqian / gql-generator

Generate queries from graphql schema, used for writing api test.
MIT License
374 stars 93 forks source link

Flag for including cross-references #58

Closed RvanderLaan closed 2 years ago

RvanderLaan commented 2 years ago

Added a includeCrossReferences flag (or -R), would close https://github.com/timqian/gql-generator/issues/51

This would be nice to have for my own use case as well, for generating queries for a headless CMS which I then use to generate TypeScript types. The schema can have many nested fields, which makes maintaining queries by hand very cumbersome when the schema is frequently updated during development

timqian commented 2 years ago

Thanks @RvanderLaan 🎉. This feature is released in the new version