diff --git a/lib/templates/plugin.js b/lib/templates/plugin.js index 17a39d80..221892ff 100644 --- a/lib/templates/plugin.js +++ b/lib/templates/plugin.js @@ -113,6 +113,7 @@ export default (ctx, inject) => { const apolloProvider = new VueApollo(vueApolloOptions) // Allow access to the provider in the context app.apolloProvider = apolloProvider + inject('theApolloProvider', apolloProvider); if (process.server) { const ApolloSSR = require('vue-apollo/ssr')