Last active
November 22, 2016 18:53
-
-
Save anapaulagomes/e6ce97efad0b2cb49fc6 to your computer and use it in GitHub Desktop.
Count unique records according to parameters - MongoDB
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.checkins.distinct('name', {city: 'london', class: 'resident'}).length; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment