Answers for "how to write the aggragation in mongodb"

Go
1

how to write the aggragation in mongodb

> db.mycol.aggregate([{$group : {_id : "$by_user", num_tutorial : {$sum : 1}}}])
{ "_id" : "tutorials point", "num_tutorial" : 2 }
{ "_id" : "Neo4j", "num_tutorial" : 1 }
>
Posted by: Guest on December-17-2020

Code answers related to "how to write the aggragation in mongodb"

Browse Popular Code Answers by Language