Fix subscribeToMore typo

This commit is contained in:
Guillaume Chau
2017-10-02 00:03:39 +02:00
committed by GitHub
parent 584cfc270c
commit 36e71ca23d
+1 -1
View File
@@ -839,7 +839,7 @@ this.$watch(() => this.type, (type, oldType) => {
### subscribe
**:warning: If you want to update a query with the result of the subscription, use `subscribeForMore`. The methods below are suitable for a 'notify' use case.**
**:warning: If you want to update a query with the result of the subscription, use `subscribeToMore`. The methods below are suitable for a 'notify' use case.**
Use the `$apollo.subscribe()` method to subscribe to a GraphQL subscription that will get killed automatically when the component is destroyed: