From 95f2a125cf218aaff1259031532d075affc9eefe Mon Sep 17 00:00:00 2001 From: Dmitry Molotkov Date: Sat, 23 Mar 2019 09:55:22 +0300 Subject: [PATCH] examples(vue-apollo): update to @nuxtjs/apollo 4.x (#5345) --- examples/vue-apollo/apollo/network-interfaces/default.js | 5 ----- examples/vue-apollo/nuxt.config.js | 6 ++++-- examples/vue-apollo/package.json | 4 +++- 3 files changed, 7 insertions(+), 8 deletions(-) delete mode 100644 examples/vue-apollo/apollo/network-interfaces/default.js diff --git a/examples/vue-apollo/apollo/network-interfaces/default.js b/examples/vue-apollo/apollo/network-interfaces/default.js deleted file mode 100644 index 7b6d3f6c14..0000000000 --- a/examples/vue-apollo/apollo/network-interfaces/default.js +++ /dev/null @@ -1,5 +0,0 @@ -import { createNetworkInterface } from 'apollo-client' - -export default (ctx) => { - return createNetworkInterface({ uri: 'https://api.graph.cool/simple/v1/cj1dqiyvqqnmj0113yuqamkuu' }) -} diff --git a/examples/vue-apollo/nuxt.config.js b/examples/vue-apollo/nuxt.config.js index 1530134236..ed54e7faed 100644 --- a/examples/vue-apollo/nuxt.config.js +++ b/examples/vue-apollo/nuxt.config.js @@ -1,8 +1,10 @@ export default { modules: ['@nuxtjs/apollo'], apollo: { - networkInterfaces: { - default: '~/apollo/network-interfaces/default.js' + clientConfigs: { + default: { + httpEndpoint: 'https://api.graph.cool/simple/v1/cj1dqiyvqqnmj0113yuqamkuu' + } } } } diff --git a/examples/vue-apollo/package.json b/examples/vue-apollo/package.json index 704507342c..fe23a6fba7 100644 --- a/examples/vue-apollo/package.json +++ b/examples/vue-apollo/package.json @@ -1,7 +1,9 @@ { "name": "example-vue-apollo", "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" }, "scripts": {