mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[GH-ISSUE #8] Custom types #101
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#101
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 @Zuieni on GitHub (Mar 31, 2019).
Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/8
Hello!
I'm using the Crate application and it is really good as a starting point for new projects! So thanks for that 😊
In the Crate code for the API part, I wanted to create a new custom type for my query. But it seems that gql-query-builder does not support custom types yet.
I wanted to get this working right now so I did the following not so good looking change in the queryDataType function 😑
As you can see, I only added a variable.type check/assing for now to make it work.
Is this something you would consider adding to this lib?
@atulmy commented on GitHub (Mar 31, 2019):
Glad you found the library useful. Actually we used to support in previous releases before migrating to TypeScript:
Thanks for pointing it out, I'll make necessary changes and bring this feature back with fixes in code suggested by you.
@atulmy commented on GitHub (Apr 10, 2019):
@Zuieni, you can update to the latest version
gql-query-builder@3.0.5for custom types.Usage example: