OPTIONS

$allElementsTrue (aggregation)

$allElementsTrue

New in version 2.6.

Takes a single expression that returns an array and returns true if all its values are true and false otherwise. An empty array returns true.