getjerry/nest-casl

Is there support for passing in an ability builder?

Opened this issue · 3 comments

I would like to pass an ability builder (Prisma) and get the desired prisma query support in permission definition

https://casl.js.org/v6/en/package/casl-prisma#usage
I meant can we use PureAbility and createPrismaAbility to get the desired outcome of having typesafety/prisma query support

@nikola418 I wasn't planning for this, but it should be easy to implement. Let me check.

is there any news on this, would love to have a working demo with casl/prisma and nest-casl