Open jmisur opened 6 months ago
Describe the bug I'm copy-pasting an aggregation pipeline from spring mongodb log. The pipeline is working correctly in my application (records are found). It uses MongoDB Extended json relaxed date format.
{ "startedAt": { "$gte": { "$date": "2023-12-21T11:25:58.344Z" } } }
However in Mingo, this produces no results for the match stage. When I rewrite it to new Date format, the results are there.
new Date
{ "startedAt": { "$gte": new Date("2023-12-21T11:25:58.344Z") } }
The startedAt field in the document is of type Date.
startedAt
Date
Screenshots
Desktop (please complete the following information):
Describe the bug I'm copy-pasting an aggregation pipeline from spring mongodb log. The pipeline is working correctly in my application (records are found). It uses MongoDB Extended json relaxed date format.
However in Mingo, this produces no results for the match stage. When I rewrite it to
new Date
format, the results are there.The
startedAt
field in the document is of typeDate
.Screenshots
Desktop (please complete the following information):