I have a dataset that looks like:
[{ operation : 'save', created_at : '10-12-2016', count : 2},
{ operation : 'save', created_at : '16-12-2016' , count : 3},
{ operation : 'save', created_at : '21-12-2016' , count : 4}]
I want to calculate the average 'count' for the whole month, meaning include all the missing 0 values for each day of the month. Can I achive this using only the momgodb aggregation framework?