mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[PR #5] refactor: Port to TypeScript #62
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#62
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/5
State: closed
Merged: Yes
I also integrated lint-staged (runs only on changed files).
Note that I had to change the way variables work. Now only object format is supported in this case. I went this way as it's easier to type and doing this simplified the codebase a notch. I can try to match the old behavior, though.
Another gotcha is that when you import from Node env (i.e. CommonJS), you have to do something like this:
I'm not entirely sure how to fix that in a neat manner. I guess we could just expose an object (regular
export) as that's same for different environments and avoids this interoperability problem.Please give this a go.
namewhen generating mutations #84name#133namewhen generating mutations #161