?
db.push
Insert one row or many. Returns the full row(s) with id and timestamps.
Table.push(data | data[]) → T | T[]
Inserts one row, or an array of rows, and returns them complete with id and timestamps. If the table declares defaults, missing fields are filled in before the insert. Use db.upsert instead when a matching row may already exist and you want to update rather than fail, and wrap several inserts in db.batch to commit them in a single round trip.
Parameters
data
Partial<T> | Partial<T>[]
RequiredRow or rows to insert.
Insert
const vendor = await Vendors.push({ name: 'Acme', status: 'pending' });