Answers for "aggregation with size and sort mongodb"

1

aggregation with size and sort mongodb

> db.demo33.aggregate({$unwind:"$ListOfStudent"}, { $group : {_id:'$_id', ct:{$sum:1}}}, { $sort :{ ct: -1}} );
Posted by: Guest on September-06-2020

Code answers related to "aggregation with size and sort mongodb"

Browse Popular Code Answers by Language