Hi,
I am trying to limit data returned in a query Find Operation by createdAt property greater than a defined date.
I know this is possible querying directly to Mongo client, but when I try to put this in a Find Operation in a users table:
{“active”: true, “createdAt” : { $gte : new Date(“2021-01-12T20:15:31Z”) }}
returns next error:
ERROR: Unexpected token $ in JSON at position 33
Is there any way to filter results by date with a $gte operator?
Thanks!