mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[GH-ISSUE #85] Generate code from a raw query #52
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#52
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 @mateus4k on GitHub (Aug 29, 2023).
Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/85
Problem
Converting a GraphQL raw query to
gql.query()is not the easiest task. I often see people getting confused in its use, especially when definingvariablesandfields.What do you think we have a way to convert a complete query into code?
Example:
Input:
Output:
@pavelmickevic commented on GitHub (Mar 15, 2025):
great idea, just lemme suggest the proper design expectation:
and ofcourse, we want the full support of queries/mutations/subscriptions, w/o variables, mandatories, aliases and stuff.
Looks massive