From ddf9aa038a898d11027bb63f4e0a77c2a196c89f Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Mon, 15 Jan 2024 10:36:02 +0100 Subject: [PATCH] fix(ApolloMutation): return result in `mutate` --- packages/vue-apollo-components/src/ApolloMutation.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vue-apollo-components/src/ApolloMutation.js b/packages/vue-apollo-components/src/ApolloMutation.js index 8e303dfd..63137390 100644 --- a/packages/vue-apollo-components/src/ApolloMutation.js +++ b/packages/vue-apollo-components/src/ApolloMutation.js @@ -82,6 +82,7 @@ export default { }).then(result => { this.$emit('done', result) this.loading = false + return result }).catch(e => { addGqlError(e) this.error = e