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
15
15
16
16
``` javascript
17
17
import Vue from ' vue' ;
18
- import ApolloClient , { createNetworkInterface , addTypename } from ' apollo-client' ;
18
+ import ApolloClient , { createNetworkInterface } from ' apollo-client' ;
19
19
import VueApollo from ' vue-apollo' ;
20
20
21
21
// Create the apollo client
@@ -24,7 +24,6 @@ const apolloClient = new ApolloClient({
24
24
uri: ' http://localhost:8080/graphql' ,
25
25
transportBatching: true ,
26
26
}),
27
- queryTransformer: addTypename,
28
27
});
29
28
30
29
// Install the vue plugin
@@ -68,7 +67,7 @@ apollo: {
68
67
},
69
68
```
70
69
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 :
72
71
73
72
``` javascript
74
73
data () {
@@ -173,7 +172,7 @@ apollo: {
173
172
},
174
173
```
175
174
176
- Don't forget to initialize your property in your vue component:
175
+ Again, you can initialize your property in your vue component:
177
176
178
177
``` javascript
179
178
data () {
You can’t perform that action at this time.
0 commit comments