Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/reference/plugins/_optimistic-behavior.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- `create` mutation inserts item to the head of the query results of the corresponding `useFindMany` queries.
- `update` mutation updates the item in the query results of `useFindXXX` queries and their nested reads by matching the item's ID.
- `upsert` mutation first tries to update the item in the query results of `useFindXXX` queries and their nested reads by matching the item's ID. If the item is not found, it inserts the item to the head of the query results.
- `delete` mutation removes the item from the query results of the corresponding `useFindMany` queries and sets `null` to `useFindUnique` and `useFindFirst` query results, by matching the item's ID.