Typescritp error in this.$apollo.mutate.update #323
Unanswered
abritopach
asked this question in
Q&A
Replies: 2 comments
-
My guess is that DELETE_POST_MUTATION doesn't return deletePost object. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Because update: (store, { data }) => {
if (!data) {
throw new Error('data is undefined')
}
const deletePost = data.deletePost
// ...
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, after upgrading an existing project to a newer version I get the following error:
Relevant code:
Any suggestions?
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions