mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[GH-ISSUE #45] Add enum #117
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#117
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 @felipe-gustavo on GitHub (Jul 3, 2020).
Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/45
i have some query that need add Enum like that:
IS_FUNCTIONAL_DEFECT and DESC are ENUM, can't be wrapped by quote
@atulmy commented on GitHub (Jul 4, 2020):
@felipe-gustavo feel free to open a PR for this use case.
@Devorein commented on GitHub (Jul 5, 2020):
@felipe-gustavo can you try the following command
@Devorein commented on GitHub (Jul 5, 2020):
@felipe-gustavo Atm there is no way to embed argument values directly, but hopefully the above will work, otherwise I'll send a PR to embed argument values directly without using variables
@ehrenmurdick commented on GitHub (Nov 11, 2021):
@Devorein @atulmy I have the same use case. The above command you posted did not work for me. Has there been any update on this?
@julienlagorsse-loreal commented on GitHub (Jan 31, 2023):
Same here.
@ehrenmurdick commented on GitHub (Feb 2, 2023):
To spare the sanity of anyone else who might resort to reading the graphql spec like me, no the graphql spec doesn't say that the server must accept strings in the variables transport for enum values. It specifically says it may accept strings. The relevant section is here: https://spec.graphql.org/October2021/#sec-Enums.Input-Coercion
I think I have enough time today to implement a PR for this so I'm working on it now.