You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In index.ts, the type for a query adapter is any, while for the mutation or subscription adapters, they are limited to IMutationAdapter or ISubscriptionAdapter
function queryOperation(
options: IQueryBuilderOptions | IQueryBuilderOptions[],
adapter?: any,
config?: any
)
...
function mutationOperation(
options: IQueryBuilderOptions | IQueryBuilderOptions[],
adapter?: IMutationAdapter,
config?: any
)
...
function subscriptionOperation(
options: IQueryBuilderOptions | IQueryBuilderOptions[],
adapter?: ISubscriptionAdapter
)
If 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
The text was updated successfully, but these errors were encountered:
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 methodsThe text was updated successfully, but these errors were encountered: