Created
November 23, 2015 16:49
-
-
Save willettk/6d897d92a5a78f0f782f to your computer and use it in GitHub Desktop.
Aggregate Zooniverse classifications in MongoDB by date
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.radio_classifications.aggregate( | |
{ $group : { | |
_id: { | |
year : { $year : "$created_at" }, | |
month : { $month : "$created_at" }, | |
day : { $dayOfMonth : "$created_at" }, | |
}, | |
count: { $sum: 1 } | |
}} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment