Loading homepage
Input: const db = new MiniORM(["user"]); const users = db.model("user"); users.create({ data: { name: "Ada" } }); users.findMany({ where: { name: "Ada" } }); Output: { id: 1, name: "Ada" }, then [{ id: 1, name: "Ada" }]
Input: users.update({ where: { id: 1 }, data: { active: true } }); Output: { id: 1, name: "Ada", active: true }
Implement the exported API in index.js or index.ts. Tests cover the documented contract and edge cases.