To aggregate timeseries based off of post types, need two values -
- the timebucket wrapper
- the type of time series you want (days, minutes, weeks, etc...)
Below gives me aggregation for Feb. 2015 by type by minute -
db.post.aggregate(
{$match: {timebucket: "2015-1-m"}},
{$unwind: "$timebucket"},