MongoDB – Aggregation

Aggregation Commands

Aggregation Methods
Pipeline Aggregation Stages
$unwind : Deconstructs an array field from the input documents to output a document for each element.

Boolean Aggregation Operators: $and, $or, $not

Set Operators: $setEquals, $setIntersection, $setUnion, $setDifference, $setIsSubset, $anyElementTrue, $allElementsTrue

Comparison Aggregation Operators: cmp, eq, gt, gte, lt, lte, ne

Arithmetic Aggregation Operators: abs, add, ceil, divide, exp, floor, ln, log, log10, mod, multiply, pow, sqrt, subtract, trunc

String Aggregation

Text Search Aggregation

Array Aggregation Operators

Aggregation Variable Operators

Aggregation Literal Operators

Date Aggregation Operators

Conditional Aggregation Operators

Group Accumulator Operators

By default 100 megabytes of RAM.
set the allowDiskUse option to true to overcome this issue.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.