docs: previousValue in afterChange field hook, fixes #2383

This commit is contained in:
James
2023-03-27 16:28:43 -04:00
parent 8bbb1a16e3
commit 789537cc8c

View File

@@ -67,6 +67,7 @@ Field Hooks receive one `args` argument that contains the following properties:
| **`previousSiblingDoc`** | The sibling data from the previous document in `afterChange` hook. |
| **`req`** | The Express `request` object. It is mocked for Local API operations. |
| **`value`** | The value of the field. |
| **`previousValue`** | The previous value of the field, before changes were applied, only in `afterChange` hooks. |
#### Return value