Open
Description
const httpLink = new HttpLink({
// You should use an absolute URL here
uri: '/mis/server/graphql',
})
// Create the apollo client
const apolloClient = new ApolloClient({
link: httpLink,
cache: new InMemoryCache(),
connectToDevTools: true,
})
Vue.use(VueApollo);
const apolloProvider = new VueApollo({
defaultClient: apolloClient,
})
console.log(apolloProvider.provide())
new Vue({
el: '#app',
router,
provide: apolloProvider.provide(),
store,
filters,
render: h => h(App),
});
This is my usage, it looks like the document describes, but it is running with error "Injection "$apolloProvider" not found",is anyone experiencing the same problem?