You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am trying to add a rule using MongoDB conditions to check if an array is greater or less than a specific number.
I have done several tests, the first one being that the field is greater than the number:
This won't work because it checks the value, not the size.
I then tried using $expr and $where, but I can't find a way to implement it.
Our way to do the is:
We load the rule definition from db and use it this way. The rule definition is:
and we create the ability:
Thank you, and if you need more information, please let me know.
Beta Was this translation helpful? Give feedback.
All reactions