mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[GH-ISSUE #73] nested operations with alias doesn't work #138
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#138
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 @ComLock on GitHub (Sep 1, 2022).
Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/73
Originally assigned to: @ComLock on GitHub.
The query string contains "[object Object](" rather than "alias: operation("
@atulmy commented on GitHub (Sep 1, 2022):
Can you share sample input?
@ComLock commented on GitHub (Sep 1, 2022):
@ComLock commented on GitHub (Sep 2, 2022):
Sry for the large example, had to run, here's a smaller one:
gives
So this:
should have been
@ComLock commented on GitHub (Sep 2, 2022):
Failing Test
@ComLock commented on GitHub (Sep 2, 2022):
The bug is here: https://github.com/atulmy/gql-query-builder/blob/master/src/Utils.ts#L65
@ComLock commented on GitHub (Sep 2, 2022):
One way to solve it:
@atulmy commented on GitHub (Sep 2, 2022):
In case you got around resolving the issue, feel free to submit a PR, will merge and publish after reviewing.
@ComLock commented on GitHub (Sep 2, 2022):
PR on the way
@atulmy commented on GitHub (Sep 2, 2022):
Thanks for your contribution. Package has been published:
https://www.npmjs.com/package/gql-query-builder/v/3.7.1