Replies: 5 comments
-
#7 please read through this, should give you a good idea of what/how to do this. With apollo2 they dropped the hard dependency on redux, so this will be much easier to implement once vue-apollo 3 is released. |
Beta Was this translation helpful? Give feedback.
-
I'm using $apollo that is stacked on
It works for me, but ugly a bit... @Akryum |
Beta Was this translation helpful? Give feedback.
-
Better way is to export apollo-client and vue-apollo in 2 separate files, then you can simply import apollo-client in your store like |
Beta Was this translation helpful? Give feedback.
-
@Samuell1 Any real world example? |
Beta Was this translation helpful? Give feedback.
-
No |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I use the $apollo query/mutation command in vuex store actions?
I have very general user data (e.g. name, permissions, ..) which should be fetched one time after login and stored in vuex. For this I want to use vuex actions to perform the apollo query command.
How can I get access to the $apollo.query() command in vuex actions?
Beta Was this translation helpful? Give feedback.
All reactions