Last active
February 15, 2018 16:16
-
-
Save trennepohl/aa1e36319ccdbf674f0e1be5c48ef584 to your computer and use it in GitHub Desktop.
MongoDB Aggregation command example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`db.myCollection.aggregate([ { $group : { _id: "$someField", count: {$sum:1} }}])` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment