Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nachtien opened this issue Dec 20, 2023 · 2 comments
Closed

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

nachtien opened this issue Dec 20, 2023 · 2 comments

Comments

@nachtien
Copy link

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

Copy link

👋 @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
Copy link
Contributor

I'd recommend using fragments to achieve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants