[Vuejs]-How to refetch apollo query after i redirect to page with Vue Router?

0👍

this.$apollo.mutate() has more features than you used:

The object looks like this:

this.$apollo.mutate({
  mutation: someGql,
  variables: {
    label: param1,
  },
  update: function(store, response) => {
    // how to update the store
  },
  optimisticResponse: theResponseYouExpect,
})

So, you sent the gql, but did not handle the response from that query (neither the real response from the server or the optimistic response (that you expect on success))

More on Vue Apollo mutation here.

Leave a comment