examples(vue-apollo): update to @nuxtjs/apollo 4.x (#5345)

This commit is contained in:
Dmitry Molotkov 2019-03-23 09:55:22 +03:00 committed by Pooya Parsa
parent a6ee8bfea0
commit 95f2a125cf
3 changed files with 7 additions and 8 deletions

View File

@ -1,5 +0,0 @@
import { createNetworkInterface } from 'apollo-client'
export default (ctx) => {
return createNetworkInterface({ uri: 'https://api.graph.cool/simple/v1/cj1dqiyvqqnmj0113yuqamkuu' })
}

View File

@ -1,8 +1,10 @@
export default { export default {
modules: ['@nuxtjs/apollo'], modules: ['@nuxtjs/apollo'],
apollo: { apollo: {
networkInterfaces: { clientConfigs: {
default: '~/apollo/network-interfaces/default.js' default: {
httpEndpoint: 'https://api.graph.cool/simple/v1/cj1dqiyvqqnmj0113yuqamkuu'
}
} }
} }
} }

View File

@ -1,7 +1,9 @@
{ {
"name": "example-vue-apollo", "name": "example-vue-apollo",
"dependencies": { "dependencies": {
"@nuxtjs/apollo": "^2.1.1", "@nuxtjs/apollo": "^4.0.0-rc.4",
"core-js": "^2.6.5",
"node-fetch": "^2.3.0",
"nuxt": "latest" "nuxt": "latest"
}, },
"scripts": { "scripts": {