feat: modified error handler to return possible rules for a validation failed rules

This commit is contained in:
=
2024-11-20 22:50:21 +05:30
parent 796f76da46
commit 7317dc1cf5
5 changed files with 21 additions and 12 deletions
+9
View File
@@ -54,3 +54,12 @@ export const isAtLeastAsPrivileged = (permissions1: MongoAbility, permissions2:
return set1.size >= set2.size;
};
export enum PermissionConditionOperators {
$IN = "$in",
$ALL = "$all",
$REGEX = "$regex",
$EQ = "$eq",
$NEQ = "$ne",
$GLOB = "$glob"
}