Skip to content

Hi all, which ability should I use? #983

Closed Answered by stalniy
tbu-chad asked this question in Q&A
Discussion options

You must be logged in to vote

PureAbility is a base class which doesn’t support conditions if they are not passed as a factory function.

You need to use createMongoAbility. It’s called MongoAbility because it allows to define conditions using Mongo query language. Casl also supports custom implementation of conditions. For example, @casl/prisma provides PrismaAbility which allows to specify conditions using Pridma query language

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tbu-chad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants