Query documents of the last 24h in MondoDB


I am trying to query items created in the last 24h in mongoDB. I have tried the following query and many variations but it doesn’t work.

{“created”: {“$lte”:{{addDays(now;-1)}}

Any advice?

please tell me if you get search by date working. I had to give up after a couple days. Maybe it’s broken.

Still no luck, I didn’t hear from support either.

Same. Ultimately I believe that the module is broken and searching by date is currently not possible. However, I have been able to submit a blank search and sort by {“_id”:-1} w/max return # 1 to get the most recent doc. Also, if known, it is possible to search by Objectid.