Max constructor

Max(
  1. dynamic expr
)

Creates $max operator expression

Returns the maximum value. $max compares both value and type, using the specified BSON comparison order for values of different types.

Implementation

Max(expr) : super('max', expr is List ? AEList(expr) : expr);