import { ApolloClient } from 'apollo-client' import { HttpLink } from 'apollo-link-http' import { InMemoryCache } from 'apollo-cache-inmemory' import VueApollo from 'vue-apollo' const httpLink = new HttpLink({ // URL to graphql server, you should use an absolute URL here uri: '/graphql' }) // create the apollo client const apolloClient = new ApolloClient({ link: httpLink, cache: new InMemoryCache() }) // install the vue plugin Vue.use(VueApollo)