We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75679dc commit 7008d8aCopy full SHA for 7008d8a
src/mutation.ts
@@ -90,7 +90,11 @@ export async function mutateWithErrorHandling<
90
client?: ApolloMutationClient<TResult, TVariables>,
91
): Promise<MutationResult<TResult>> {
92
const mutate =
93
- client === undefined ? app.$apollo : typeof client === 'function' ? client : client.mutate.bind(client);
+ client === undefined
94
+ ? app.$apollo.mutate.bind(app.$apollo)
95
+ : typeof client === 'function'
96
+ ? client
97
+ : client.mutate.bind(client);
98
99
try {
100
const result = await mutate({
0 commit comments