I'm facing the problem below:
Query: {date: {$lte: new Date(ISODate().getTime() - 1000 * 3600 * 24 * 3)}}
- The same query, executed error thru mongo Atlas web, but in compass, it's working.
- I'm trying to all get the data and exclude the data in past 2 days(include today).
- I'm using Mongo DB 5.0.
- Both of the query are connect to the same DB endpoint.
I execute the query in mongo atlas web, and having error.
Then I try run the same query in Compass, without any issue.
Any clue? Thanks in advance!