How would you achieve something like ACL in Prisma...
# orm-help
t
How would you achieve something like ACL in Prisma? If you expose the Prisma side type, it will result in the relations exposed as well, which ends up allowing traversing the whole database.
j
Not sure if you should be exposing the Prisma API publicly. It’s pretty much exposing your database.
t
I'm just exposing the types (by import).
o
@Tatsuyuki Ishi If I understand you correctly, you would have to do it yourself using something like
graphql-shield