MongoDB fill missing dates in aggregation pipeline
I have this pipeline : let pipeline = [ { $match: { date: { $gte: new Date("2022-10-19"), $lte: new Date("2022-10-26") }, }, }, { $group: { _id: "$date", tasks: { $push: "$$ROOT" }, }, }, { $sort: { _id: -1…