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