Skip to content

Commit 9d64fca

Browse files
bbughAkryum
authored andcommitted
fix(useMutation): "mutate" optional arguments
1 parent 0ad08c7 commit 9d64fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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