mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
Update example to use nuxt-apollo 2.0
This commit is contained in:
parent
378d116bf8
commit
2fc07a89b1
@ -1,3 +1,5 @@
|
||||
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' })
|
||||
}
|
||||
|
@ -1,12 +1,13 @@
|
||||
{
|
||||
"name": "nuxt-vue-apollo",
|
||||
"dependencies": {
|
||||
"@nuxtjs/apollo": "^1.0.0",
|
||||
"nuxt": "^1.0.0-rc3"
|
||||
"@nuxtjs/apollo": "^2.0.0",
|
||||
"nuxt": "^1.0.0-rc6"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "nuxt",
|
||||
"build": "nuxt build",
|
||||
"start": "nuxt start"
|
||||
"start": "nuxt start",
|
||||
"generate": "nuxt generate"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user