This version of the documentation is archived and no longer supported.

$or (aggregation)


Takes an array of one or more values and returns true if any of the values in the array are true. Otherwise $or returns false.


$or uses short-circuit logic: the operation stops evaluation after encountering the first true expression.