mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[PR #6] Generalize API #63
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#63
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?
Original Pull Request: https://github.com/atulmy/gql-query-builder/pull/6
State: closed
Merged: Yes
I encoded operation type to the method name (i.e.
query/mutation) and generalized the implementation to supportqueriesandmutations. I added these methods to avoid ambiguity in typing.If you prefer
query([<options>])kind of approach, that's feasible too. I suppose we would drop the two new methods then and fold them into this scheme.Let me know what you think. Internally it's flexible so it's not a big deal to change the external API.
Closes #4.
namewhen generating mutations #84namewhen generating mutations #161