In MongoDB, the $anyElementTrue aggregation pipeline operator evaluates an array as a set and returns true if any of the elements are true.
If none of the elements is true, then it returns false.
An array’s element is true if it’s not false, null, 0, or undefined.