Thanks @maralefer, that has got me close but I can’t seem to get this.$apollo to be set up properly. If I check this.$apollo in mounted(), it comes up as a DollarApollo object:
this.$apollo
DollarApollo {_apolloSubscriptions: Array(0), _watchers: Array(0), vm: Vue, queries: {…}, subscriptions: {…}, …}
But its client property is always undefined:
this.$apollo.client
undefined
I know the provider is being set up with the client because stepping through my plugin shows that is is. Also, I can see the client from within mounted() when looking at:
this._provided.$apolloProvider.clients
{a: ApolloClient, defaultClient: ApolloClient}
Any ideas?
Thanks in advance,
Daniel