Hy, I have some documents with a start date and a end date.
{
startDate: ISODate("2020-01-07T00:00:00.000Z"),
endDate: ISODate("2020-01-10T00:00:00.000Z")
}
Is it possible using mongodb aggregations to have something like
[
ISODate("2020-01-07T00:00:00.000Z"),
ISODate("2020-01-08T00:00:00.000Z"),
ISODate("2020-01-09T00:00:00.000Z"),
ISODate("2020-01-10T00:00:00.000Z")
]
The goal is to intersect two date range in order to extract common date.
Thanks a lot