File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Integrates [apollo](http://www.apollostack.com/) in your vue components with dec
1515
1616``` javascript
1717import Vue from ' vue' ;
18- import ApolloClient , { createNetworkInterface , addTypename } from ' apollo-client' ;
18+ import ApolloClient , { createNetworkInterface } from ' apollo-client' ;
1919import VueApollo from ' vue-apollo' ;
2020
2121// Create the apollo client
@@ -24,7 +24,6 @@ const apolloClient = new ApolloClient({
2424 uri: ' http://localhost:8080/graphql' ,
2525 transportBatching: true ,
2626 }),
27- queryTransformer: addTypename,
2827});
2928
3029// Install the vue plugin
@@ -68,7 +67,7 @@ apollo: {
6867},
6968```
7069
71- Don't forget to initialize your property in your vue component:
70+ You can initialize the property in your vue component's ` data ` hook :
7271
7372``` javascript
7473data () {
@@ -173,7 +172,7 @@ apollo: {
173172},
174173```
175174
176- Don't forget to initialize your property in your vue component:
175+ Again, you can initialize your property in your vue component:
177176
178177``` javascript
179178data () {
You can’t perform that action at this time.
0 commit comments