Skip to content

Instantly share code, notes, and snippets.

@gsans
Created February 21, 2023 16:09
Show Gist options
  • Save gsans/865085d97924090f66843e2bc6d4e062 to your computer and use it in GitHub Desktop.
Save gsans/865085d97924090f66843e2bc6d4e062 to your computer and use it in GitHub Desktop.
import { createApp } from 'vue'
import { DefaultApolloClient } from '@vue/apollo-composable'
import { ApolloClient, createHttpLink, InMemoryCache } from '@apollo/client/core'
import App from './App.vue'
const httpLink = createHttpLink({
uri: 'https://l5z4hz.sse.codesandbox.io/',
})
const apolloClient = new ApolloClient({
link: httpLink,
cache: new InMemoryCache(),
})
createApp(App).provide(DefaultApolloClient, apolloClient).mount('#app')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment