Repository navigation
·
2 commits
to main
since this release
- New (entity):
.stored()on a relation'scount()orsum()keeps it in a column of the parent, read, filtered, sorted and indexed like any field. Triggers on the related table keep it exact through every write, and the migration adding it fills it from the rows already there. Not on MongoDB. - New (migrate): a migration installs its triggers and policies after all its table changes, so a trigger may use a column another table gains in the same migration.
- New (entity):
exists()on a to-many relation,(user) => user.posts.exists({ $where }): a boolean field telling whether any related row matches, read as anEXISTSthat stops at the first one, on every engine.