ZenStack Release v1.0.0-alpha.79
What's Changed
- Server adapter for Express.js
- More plugin options for
@zenstackhq/openapiplugin
Potential Breaking Changes
- Prisma relation-related mutations:
connect,connectOrCreate, andupdatenow trigger the validation of "update" policy on the relation owner side (since such operations update foreign keys). It wasn't enforced in the previous releases. You may need to adjust access policies accordingly.
E.g.:
model User {
...
posts Post[]
}
model Post {
...
author User? @relation(fields: [authorId], references: [id])
authorId String?db.user.create({
data: {
posts: { connect: { id: 'post1' } }
}
});The above code may fail if Post model is not updatable by the current user.