zenstack
zenstack copied to clipboard
Typescript toolkit on top of Prisma ORM, offering flexible and declarative Access Control Policy(Authorization/Permission) for RBAC/ABAC/PBAC/ReBAC with auto-generated type-safe APIs and frontend hook...
The old `subscribe` API is already proxied and injected. The newly added `stream` API is not supported yet. https://www.prisma.io/docs/pulse/getting-started
**Description and expected behavior** We recently upgraded to V2. Our user creation request performs an upsert (using the same route for creating a user and updating some of their preferences)....
Currently, imports are tightly coupled to each other because Prisma requires the relationship to be defined on both sides using the other-sides type. However, each model may be defined in...
**Description and expected behavior** The `@zenstackhq/trpc` that adds a trpc router for Prisma with ZenStack seems to break due to this TypeScript error: `The inferred type of this node exceeds...
Zenstack plugin import from a npm package leads to `Cannot find model file` (although it does work when trying to do `npx zenstack generate`) **Plugin version**: v2.3.0 An easy way...
**Description** I ran this `npx zenstack generate --schema schema/main.zmodel --output ..` It deleted everything in the directory above the current directory. **Expected behavior** I didn't expect it delete all my...
npx zenstack@latest init won't work for me. This is the error I received: AppData\Local\npm-cache\_npx\aded272cd7beac82\node_modules\@prisma\prisma-schema-wasm\src\prisma_schema_build.js:513 const wasmModule = new WebAssembly.Module(bytes); ^ CompileError: WebAssembly.Module(): section (code 10, "Code") extends past end of...
The @zenstackhq/tanstack-query mentions that it has optimistic updates implemented. I didn't see this mentioned in the docs for the @zenstackhq/trpc plugin. I would like to know if it also supports...
**Description and expected behavior** Cross model comparison on models for 'read' checks works for models with a direct relation to the model backing `auth()` (User in the following example). It...
[*From Discord discussion*] (https://discord.com/channels/1035538056146595961/1159194942787293255/1265774955518230579) Currently, the `enhance.model.check` feature in preview does not support the `check(parent)` policy in the schema. If you use `check` in your model policy, it currently results...