->update()
Updates all records in a table, 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 update.
|
data
|
mixed
| The document / record data to update. |
Example usage
Translated query
This function will run the following query in the database.