Skip to content

uql-orm 0.120.2

Latest

Choose a tag to compare

@rogerpadilla rogerpadilla released this 02 Dec 18:51
· 2 commits to main since this release
  • New (entity): .stored() on a relation's count() or sum() 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 an EXISTS that stops at the first one, on every engine.