From 40a9933f3982e5cbe38dcfc0f365250508e38829 Mon Sep 17 00:00:00 2001 From: "C. T. Lin" Date: Sat, 14 Jul 2018 12:00:35 +0800 Subject: [PATCH] [docs] refetchQueries should allow query name string `refetchQueries` should allow array of query name string or `{ query: DocumentNode, variables?: TVariables}`. --- 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 441ce9212bc..1ea54f73419 100644 --- a/docs/source/essentials/mutations.md +++ b/docs/source/essentials/mutations.md @@ -234,7 +234,7 @@ The Mutation component accepts the following props. Only `mutation` and `childre
If true, the `data` property on the render prop function will not update with the mutation result.
`optimisticResponse`: Object
Provide a [mutation response](../features/optimistic-ui.html) before the result comes back from the server
-
`refetchQueries`: (mutationResult: FetchResult) => Array<{ query: DocumentNode, variables?: TVariables}>
+
`refetchQueries`: (mutationResult: FetchResult) => Array<{ query: DocumentNode, variables?: TVariables} | string>
A function that allows you to specify which queries you want to refetch after a mutation has occurred
`onCompleted`: (data: TData) => void
A callback executed once your mutation successfully completes