What's Changed
- Support for implicit many-to-many relations
- Added attribute functions for filtering on fields in policy expressions: contains, search, startsWith, endsWith, has, hasSome, isEmpty. You can use these functions to write more flexible policy rules, e.g.:
See detailed documentation here: https://zenstack.dev/docs/reference/zmodel-language#predefined-attribute-functions.
model Post { id String @id title String @@allow('update', startsWith(title, '[DRAFT]')) }
- Improved consistency in handling undefined and null values in
auth()
object
Full Changelog: v1.0.0-alpha.85...v1.0.0-alpha.87