Skip to content

Commit

Permalink
Merge pull request #3688 from chentsulin/patch-2
Browse files Browse the repository at this point in the history
[docs] refetchQueries should allow query name string
  • Loading branch information
hwillson authored Jul 30, 2018
2 parents ae74714 + 98f7a71 commit a4b0f0e
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>`awaitRefetchQueries`: boolean</dt>
<dd>Queries refetched as part of `refetchQueries` are handled asynchronously, and are not waited on before the mutation is completed (resolved). Setting this to `true` will make sure refetched queries are completed before the mutation is considered done. `false` by default.</dd>
Expand Down

0 comments on commit a4b0f0e

Please sign in to comment.