diff --git a/store.js b/store.js index 74cc627..83dfb81 100644 --- a/store.js +++ b/store.js @@ -74,7 +74,7 @@ const store = new Vuex.Store({ }, // You call this action to start the sunscription subscribeToFruits(context){ - fruitsSubscriptionObserver = fruitsSubscriptionObserver.subscribe({ + fruitsSubscriptionObserver = submetricvaluesSubscriptionObservable.subscribe({ next(data){ // mutation will say the type of GraphQL mutation `CREATED`, `UPDATED` or `DELETED` console.log(data.Fruit.mutation); @@ -108,4 +108,4 @@ const store = new Vuex.Store({ } }); -export default store; \ No newline at end of file +export default store;