heftapp / graphql_codegen

MIT License
143 stars 53 forks source link

[Suggestion] Generate variable names based off of aliases #334

Closed nachtien closed 3 months ago

nachtien commented 9 months ago

The generated variable names get very long quite quickly. It would be really nice to have the names correlate to a GraphQL alias instead.

The Apollo GraphQL Kotlin library does this: https://www.apollographql.com/docs/kotlin/advanced/using-aliases

github-actions[bot] commented 9 months ago

👋 @nachtien Thank you for raising an issue. I will investigate the issue and get back to you as soon as possible. Please make sure you have provided enough context.

This library is created and maintained by me, @budde377. Please consider supporting my work and ensure our survival by donating here.

budde377 commented 9 months ago

I'd recommend using fragments to achieve this.