@drum I create a plugin with quasar new plugin apolloclient, its looks like this:
// import something here
import { ApolloClient } from ‘apollo-client’
import { HttpLink } from ‘apollo-link-http’
import { InMemoryCache } from ‘apollo-cache-inmemory’
import VueApollo from ‘vue-apollo’
// leave the export, even if you don’t use it
export default ({ app, router, Vue }) => {
const httpLink = new HttpLink({
uri: ‘https://graphene.miserver.com.ar/grap2’
// ‘https://us-west-2.api.scaphold.io/graphql/dsvet’
})
const apolloClient = new ApolloClient({
link: httpLink,
cache: new InMemoryCache(),
connectToDevTools: true
})
Vue.use(VueApollo)
const apolloProvider = new VueApollo({
defaultClient: apolloClient,
defaultOptions: {
$loadingKey: ‘loading’
}
})
app.provide = apolloProvider.provide()
}