Skip to content

Commit 7787bb3

Browse files
Eckzzobenjie
authored andcommitted
fix: fix output type for mutate and get payload (#394)
1 parent fba116f commit 7787bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mutation/mutation.ts

Lines changed: 1 addition & 1 deletion
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)