From 6c43a41da7d171dc3137efe5a03ea83cc608f5a0 Mon Sep 17 00:00:00 2001 From: Kevin Cooper Date: Tue, 24 Apr 2018 18:41:04 -0400 Subject: [PATCH 1/2] Update MutationResult API docs --- docs/source/essentials/mutations.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/essentials/mutations.md b/docs/source/essentials/mutations.md index 7f5623d59ab..7bc0e51c2aa 100644 --- a/docs/source/essentials/mutations.md +++ b/docs/source/essentials/mutations.md @@ -266,6 +266,8 @@ The render prop function that you pass to the `children` prop of `Mutation` is c
Any errors returned from the mutation
`called`: boolean
A boolean indicating if the mutate function has been called
+
`client`: ApolloClient
+
Your `ApolloClient` instance. Useful for manually firing queries or writing data to the cache.

Next steps

From d000fa7cbd04b26ae546670217da6a96ce52ed2b Mon Sep 17 00:00:00 2001 From: Peggy Rayzis Date: Thu, 26 Apr 2018 14:50:30 -0400 Subject: [PATCH 2/2] Update mutations.md --- docs/source/essentials/mutations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/essentials/mutations.md b/docs/source/essentials/mutations.md index 7bc0e51c2aa..441ce9212bc 100644 --- a/docs/source/essentials/mutations.md +++ b/docs/source/essentials/mutations.md @@ -267,7 +267,7 @@ The render prop function that you pass to the `children` prop of `Mutation` is c
`called`: boolean
A boolean indicating if the mutate function has been called
`client`: ApolloClient
-
Your `ApolloClient` instance. Useful for manually firing queries or writing data to the cache.
+
Your `ApolloClient` instance. Useful for invoking cache methods outside the context of the update function, such as `client.writeData` and `client.readQuery`.

Next steps