Skip to content

Commit 1a9f5b0

Browse files
Eckzzobenjie
authored andcommitted
fix: fix output type for mutate and get payload (#394)
1 parent 6cfca2d commit 1a9f5b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mutation/mutation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ interface MutationConfig<TInput = any, TOutput = unknown, TContext = any> {
4141
extensions?: GraphQLFieldExtensions<any, any>;
4242
inputFields: ThunkObjMap<GraphQLInputFieldConfig>;
4343
outputFields: ThunkObjMap<GraphQLFieldConfig<TOutput, TContext>>;
44-
mutateAndGetPayload: MutationFn<TInput, TOutput, TContext>;
44+
mutateAndGetPayload: MutationFn<TInput, Promise<TOutput> | TOutput, TContext>;
4545
}
4646

4747
/**

0 commit comments

Comments
 (0)