| name | orm-auth |
| description | ORM client for the auth API — provides typed CRUD operations for 13 tables and 35 custom operations |
orm-auth
ORM client for the auth API — provides typed CRUD operations for 13 tables and 35 custom operations
Usage
import { db } from './orm';
db.<model>.findMany({ select: { id: true } }).execute()
db.<model>.findOne({ id: '<UUID>', select: { id: true } }).execute()
db.<model>.create({ data: { ... }, select: { id: true } }).execute()
db.<model>.update({ where: { id: '<UUID>' }, data: { ... }, select: { id: true } }).execute()
db.<model>.delete({ where: { id: '<UUID>' } }).execute()
Examples
Query records
const items = await db.auditLogAuth.findMany({
select: { id: true }
}).execute();
References
See the references/ directory for detailed per-entity API documentation: