Hi all, we really want to use Prisma in our projec...
# orm-help
a
Hi all, we really want to use Prisma in our project! I want to know if there's a way to define a default filter at model level in order to automatically filter rows based to user permission (something like Laravel Eloquent global scopes). Doing this we don't need to repeat the permission filter in every query. Tnx a lot!
n
Hey Alex 👋 welcome to our Slack 🙂 Prisma doesn’t offer such a feature natively at the moment but if I understand you correctly, a tool like Cerbos could help with this. @Alex Olivier recently gave a

demo

of how this worked on our What’s new in Prisma livestream. Hope this helps!
👍 1