Skip to content

Commit

Permalink
[docs] refetchQueries should allow query name string
Browse files Browse the repository at this point in the history
`refetchQueries` should allow array of query name string or `{ query: DocumentNode, variables?: TVariables}`.
  • Loading branch information
chentsulin authored Jul 14, 2018
1 parent 60eb1db commit 40a9933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/essentials/mutations.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ The Mutation component accepts the following props. Only `mutation` and `childre
<dd>If true, the `data` property on the render prop function will not update with the mutation result.</dd>
<dt>`optimisticResponse`: Object</dt>
<dd>Provide a [mutation response](../features/optimistic-ui.html) before the result comes back from the server</dd>
<dt>`refetchQueries`: (mutationResult: FetchResult) => Array<{ query: DocumentNode, variables?: TVariables}></dt>
<dt>`refetchQueries`: (mutationResult: FetchResult) => Array<{ query: DocumentNode, variables?: TVariables} | string></dt>
<dd>A function that allows you to specify which queries you want to refetch after a mutation has occurred</dd>
<dt>`onCompleted`: (data: TData) => void</dt>
<dd>A callback executed once your mutation successfully completes</dd>
Expand Down

0 comments on commit 40a9933

Please sign in to comment.