Skip to content

Commit d02378e

Browse files
author
Guillaume Chau
authored
Use createBatchingNetworkInterface
1 parent 7571745 commit d02378e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,13 @@ In your app, create an `ApolloClient` instance and install the `VueApollo` plugi
5353

5454
```javascript
5555
import Vue from 'vue'
56-
import { ApolloClient, createNetworkInterface } from 'apollo-client'
56+
import { ApolloClient, createBatchingNetworkInterface } from 'apollo-client'
5757
import VueApollo from 'vue-apollo'
5858

5959
// Create the apollo client
6060
const apolloClient = new ApolloClient({
61-
networkInterface: createNetworkInterface({
61+
networkInterface: createBatchingNetworkInterface({
6262
uri: 'http://localhost:3020/graphql',
63-
transportBatching: true,
6463
}),
6564
connectToDevTools: true,
6665
})

0 commit comments

Comments
 (0)