[PR #6] Generalize API #63

Closed
opened 2026-03-03 00:03:06 +03:00 by kerem · 0 comments
Owner

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 support queries and mutations. 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.

**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 support `queries` and `mutations`. 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.
kerem 2026-03-03 00:03:06 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gql-query-builder#63
No description provided.