Update example to use nuxt-apollo 2.0

This commit is contained in:
Sebastien Chopin 2017-08-29 13:58:32 +02:00
parent 378d116bf8
commit 2fc07a89b1
2 changed files with 7 additions and 4 deletions

View File

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

View File

@ -1,12 +1,13 @@
{ {
"name": "nuxt-vue-apollo", "name": "nuxt-vue-apollo",
"dependencies": { "dependencies": {
"@nuxtjs/apollo": "^1.0.0", "@nuxtjs/apollo": "^2.0.0",
"nuxt": "^1.0.0-rc3" "nuxt": "^1.0.0-rc6"
}, },
"scripts": { "scripts": {
"dev": "nuxt", "dev": "nuxt",
"build": "nuxt build", "build": "nuxt build",
"start": "nuxt start" "start": "nuxt start",
"generate": "nuxt generate"
} }
} }