Count number of occurrences in MongoDB

 db.collection_name.aggregate(
   {$group : { _id : '$field_name', count : {$sum : 1}}},
   {$sort: { count: -1 } }
)


Total page views:

Comments

Popular posts from this blog

Check Change Files in Git

Run termux script using macrodroid

Create rish shortcut on Home Screen