Open YanLiang1102 opened 6 years ago
Here is the code: db.sourcedictionaries.aggregate( [ { $match : {"userName":/wikicoding/} }, { $group : { _id : "$userName",count:{$sum:1}} } ] )
Here is the code: db.sourcedictionaries.aggregate( [ { $match : {"userName":/wikicoding/} }, { $group : { _id : "$userName",count:{$sum:1}} } ] )