on-internet
← Community

Specifying $and logic in a CASL rule

Stack Overflow ·

I understand from the CASL docs that logic operators like $and, $or etc. have not been implemented in CASL for mongoose $or can easily be specified by separate can rules with the same action and subject But I don't understand quite how to implement $and. The docs only mention that combination of cannot rules allows to mimic $not and $and operators. Moreover as we discussed in this guide, all properties inside conditions object are checked by AND logic, this is another way to mimic $and operator What exactly does that mean? I have actually no idea how to implement a rule like this correctly: ca

Comments

Sign in or sign up to comment and upvote.

No comments yet.