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
jasonhealy
05/16/2018, 8:21 AM
Not sure if you should be exposing the Prisma API publicly. It’s pretty much exposing your database.
t
Tatsuyuki Ishi
05/16/2018, 8:23 AM
I'm just exposing the types (by import).
o
orr
05/16/2018, 3:23 PM
@Tatsuyuki Ishi If I understand you correctly, you would have to do it yourself using something like