Skip to content

Commit

Permalink
Update README for mutation query config meta option
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Ashcraft committed Mar 31, 2017
1 parent d4d30c0 commit 3a26bb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Query configs are objects used to describe how redux-query should handle the req
| `optimisticUpdate` | object | | Object where keys are entity IDs and values are functions that provide the current entity value. The return values are used to update the `entities` store until the mutation finishes. |
| `body` | object | | The HTTP request body. |
| `queryKey` | string | | The identifier used to identify the query metadata in the `queries` reducer. If unprovided, the `url` and `body` fields are serialized to generate the query key. |
| `meta` | object | | Various metadata for the query. Can be used to update other reducers when queries succeed or fail. |
| `options` | object | | Options for the request. Set `options.method` to change the HTTP method, `options.headers` to set any headers and `options.credentials = 'include'` for CORS. |

### `transform` functions
Expand Down

0 comments on commit 3a26bb4

Please sign in to comment.