Skip to content

Instantly share code, notes, and snippets.

@SurbhiKatariya SurbhiKatariya/main.js
Last active Apr 4, 2020

Embed
What would you like to do?
Add apolloProvider in vue instance
// Create the apollo client
const apolloClient = new ApolloClient({
link,
cache: new InMemoryCache(),
connectToDevTools: true
})
const apolloProvider = new VueApollo({
defaultClient: apolloClient
})
new Vue({
router,
apolloProvider,
apolloClient,
render: h => h(App)
}).$mount('#app')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.