name
aggregate-Calculate the aggregate value of the data in the collection.
grammar
db.collectionspace.collection.aggregate( <subOp1>,[subOp2],... )
category
Collection
description
The function of the aggregate() method is similar to that of the find() method. It also retrieves the document records from the SequoiaDB collection and returns the cursor.
parameter
-
subOp
( Object , required )subOp1, subOp2... represent the sub-operations containing the aggregate symbol , and 1~N sub-operations can be filled in the aggregate() method. Each sub-operation is an Object object containing an aggregate character, and the sub-operations are separated by commas. Pay attention to the grammatical rules of the parameter names of each sub-operation.
Click on Jushan Database Documentation Center for more information