Expr constructor

Expr(
  1. AggregationExpr expr
)

Creates an $expr part of $match stage

The operator is used in match aggregation stage to define match expression as aggregation expression.

expr - aggregation expression which usually resolves into bool

Implementation

Expr(AggregationExpr expr) : super('expr', expr);