0

I still can't seem to do what I want to do. My Data Base: {lastSeen: { $date: {$numberLong: 1614618000000 }}}

I want substract days to value and selects the documents where the value of the field is greater than or equal. I test this:

{"lastSeen": { "$gte": {"$date": { "$subtract": [ "$date", 1616000000000 ] }}}}

but the response is 'no result to show' on Gamesparks. When i test with this query: {"lastSeen": { "$gte": {"$date": "2021-03-13T00:00:00.000Z"}}} i have responses. An idea ? Thank you.

Cyrille Mouret
  • 75
  • 1
  • 1
  • 5

0 Answers0