Skip to content

Commit 029a937

Browse files
committed
fix(useMutation): "mutate" optional arguments
1 parent fb3e3f5 commit 029a937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-apollo-composable/src/useMutation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function useMutation<
3434
// Apollo Client
3535
const { resolveClient } = useApolloClient()
3636

37-
async function mutate (variables: TVariables = null, overrideOptions: Omit<UseMutationOptions, 'variables'>) {
37+
async function mutate (variables: TVariables = null, overrideOptions: Omit<UseMutationOptions, 'variables'> = {}) {
3838
let currentDocument: DocumentNode
3939
if (typeof document === 'function') {
4040
currentDocument = document()

0 commit comments

Comments
 (0)