JSturm Member

Comments

  • I know this question is very old, but I had a similar problem and solved it with an aggregation pipeline. Note, this requires MongoDB 4.2 or later. {$expr: {$gt: ["$order_date", {$subtract: ['$$NOW', 24*60*60*1000]}]}} This compute an "age" field that I can then filter on. I don't know if there's a simpler way but this…