orm-objects
Installation
SKILL.md
orm-objects
ORM client for the objects API — provides typed CRUD operations for 5 tables and 14 custom operations
Usage
// Import the ORM client
import { db } from './orm';
// Available models: getAllRecord, object, ref, store, commit
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()