?
db.get
Fetch one row by id, or null when nothing matches.
Table.get(id) → Query<T | null>
Fetches a single row by id and resolves to that row, or to null if no row has that id. It is a Query, so it batches: pull several rows by id in one round trip through db.batch rather than awaiting each db.get in turn.
Parameters
id
string
RequiredThe row id.
Fetch by id
const vendor = await Vendors.get(id); // Vendor | null