I have a collection that's setup like this:
{
_id: uuid.v4(),
startDate: Date(),
}
I don't have any ideas for this. The end result I'm looking for, would be something like this ( total
is number of users in date ):
[
{
date: "2018-12",
total: 12
},
{
date: "2019-01",
total: 32
},
{
date: "2019-02",
total: 23
},
...
]
Any help would be greatly appreciated. Thank you