"SequoiaDB giant sequoia database" aggregate() overview 1

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

  • subOpObjectrequired  )

    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

 

Guess you like

Origin blog.csdn.net/weixin_45890253/article/details/112861517