mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[GH-ISSUE #84] Will not take in multiple types for same variable #51
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#51
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 @Rajin-Bains on GitHub (Aug 21, 2023).
Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/84
I am trying to run GQL query that takes in the "where" variable but it takes them in twice. Each time it is a different type. When I run the query it doesnt recongnize the type of the second where and returns type mismatch.
@SadScream commented on GitHub (Aug 31, 2023):
In your fragment "where" is just an alias for variable and the problem is that operations
telcoActivationStatusPendingandsubscriptionStatusSuccesshave conflicts, because they both trying to use variable "where" andsubscriptionStatusSuccessredifines type of this variable. To solve this you should just rename this alias so that there is no name conflict.For example, you can do it like this