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...
It's great to have this feature for future use. I'm excited about the potential of this project and currently, I'm manually creating all these policies on migration files. It would...
TODO **Description and expected behavior** A clear and concise description of what the bug is and what's the expected behavior. In a prisma schema if you use `previewFeatures` `multiSchema` if...
**Description and expected behavior** It is confusing that we need to repeat the Id of the entity that we are updating by POST or PUT operations. I can provide one...
```prisma model User { id Int @id @default(autoincrement()) email String @unique name String? posts Post[] teamMemberships TeamMembership[] @@allow('all', true) } model TeamMembership { id Int @id @default(autoincrement()) teamId Int user...
Zenstack already supports automatic CRUD API with generated react-query hooks(which is insane, thanks!), so for example for Post model: ```prisma model Post { ... title String } ``` we can...
`const { error } = useAnything()` **error** returns a type of `QueryError | null` Inside this type it returns a field "issues" of type unknown Explicit type is needed here...
**Is your feature request related to a problem? Please describe.** I wish I could use relations within the @@validate attribute to implement complex validations. **Describe the solution you'd like** Let...
**Is your feature request related to a problem? Please describe.** - Prisma's current API for hooks (esp. at model level) is lacking. - `.$extends` requires explicit method wrapping, and doesn't...