mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[GH-ISSUE #88] Cannot use Utils methods in custom Adapter #56
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#56
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 @yargyropoulos on GitHub (Dec 7, 2023).
Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/88
If I try to create my custom Adapter as suggested in the docs , I cannot access Utils methods. For example this Adapter:
will throw an error like
TypeError: Utils.resolveVariables is not a functionThis happens because Utils is exported as an instantiable class with static functions, and while this works when importing it inside the
gql-query-builderproject itself, I cannot work in other projects that have a dependency to it.See also :