Runtime Overview
Use this section when you are already past installation and want the actual runtime contract. The runtime surface should be read as:new User()for a transient in-memory model instanceUser.create(...)for one-shot persistenceUser.createMany(...)for explicit bulk insertsUser.find(...),User.findOneBy(...), and safe-finder chains for reads- loaded-instance
update(...); save()andpatch(...)for readable mutation User.updateMany(...),User.patchMany(...),User.deleteMany(...), andUser.restoreMany(...)for explicit bulk writesUser.updateById(...),User.deleteById(...), andUser.restoreById(...)for explicit low-level by-id service paths
Start with these pages
Practical rule
If the code is application-facing and should stay readable:- query first
- mutate the loaded instance
- persist with
save()orpatch()
- use
User.updateById(...) - use
User.deleteById(...) - use
User.restoreById(...)
- use
User.createMany(...) - use
User.updateMany(...)orUser.patchMany(...) - use
User.deleteMany(...)orUser.restoreMany(...)