Aggregation Operators

Aggregation operators can be used to create expressions in the aggregation pipeline. The operators work like functions. They typically take either a single argument like this:

{[operator]: [argument]}

Or they take an array of arguments like this:

{[operator]: [[argument1], [argument2] ...]}

Aggregation Operators Types

Boolean Operators

Comparison Operators

Arithmetic Operators

String Operators

Array Operators

Set Operators

Literal Operators

Date Operators

Date Format Specifiers

Conditional Operators

Accumulator Operators

Last updated