mengisodate mongoDB nodeJs
Ticket.aggregate([
{
$match: {
createdAt: {
$gte: new moment().startOf('month').toDate()
}
}
}
]).then(results => {
// do something
})
Krushn