mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-26 08:05:51 +03:00
[GH-ISSUE #48] Aliases #26
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gql-query-builder#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @seahindeniz on GitHub (Sep 15, 2020).
Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/48
Hi!
Is there any support or examples for query aliases?
https://graphql.org/learn/queries/#aliases
@Devorein commented on GitHub (Sep 24, 2020):
Nope not at the moment but thank you that is definitely a feature that should be included.
@nicholasohrn commented on GitHub (Jan 19, 2021):
@seahindeniz I had a similar question and found the easiest way around this was to prepend the desired alias to the operation name:
It ends up generating the following:
This is obviously not the best possible solution and may fall over at any time, but it worked for me when I was trying to figure out how to batch queries with aliases while taking advantage of this library.
Thank you to @Devorein for putting this all together. I'll try to contribute back with real alias support at some point.
@leeroyrose commented on GitHub (Jul 20, 2022):
I have opened a PR to solve this issue: https://github.com/atulmy/gql-query-builder/pull/71