mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[GH-ISSUE #89] Cannot create custom Mutation or Subscription Adapter #57
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#57
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/89
In
index.ts, the type for a query adapter isany, while for the mutation or subscription adapters, they are limited to IMutationAdapter or ISubscriptionAdapterIf I try to create my custom adapters, I will be able to create a Query Adapter without issues, but for a Mutation Adapter like this:
I will get a compilation error like this:
Type 'typeof MyMutationAdapter' is missing the following properties from type 'IMutationAdapter': mutationBuilder, mutationsBuilder, even though MyMutationAdapter implements both methods