->patch()
Applies JSON Patch changes to all records, or a specific record, in the database.
Note
Arguments
| Arguments | Type | Description |
|---|---|---|
thing
|
string, RecordId or StringRecordId
|
The table name or the specific RecordId to patch.
|
data
|
associative array
| The JSON Patch data with which to patch the records. |
diff
|
boolean
| Whether to return the diff of the patched record. |
Example usage
Translated query
This function will run the following query in the database.