Reference
?

db.update

Update a row by id and return the updated row. Bumps updated_at automatically.
Table.update(id, patch) → T

Applies a partial patch to the row with the given id, returns the updated row, and bumps updated_at. It throws if no row has that id, so it is for rows you know exist — reach for db.upsert when the row might not be there yet. Batch multiple updates through db.batch rather than awaiting them one at a time in a loop, since each un-batched call is its own round trip.

Parameters
id
string
RequiredRow id.
patch
Partial<T>
RequiredFields to change.
Update
await Vendors.update(vendor.id, { status: 'approved' });