MongoDump issue with Date Query

Hello, im trying to dump documents from a cluster from just the last week. But I keep getting “Failed: error parsing query as Extended JSON: invalid JSON input. Position: 9. Character: I”. Here is the string im using for MondoDump:

And then here is my query

I also tried this

Hello @Chase_Russell1, you can look at this similar post for an answer about specifying a date query (with --query option) syntax:

https://www.mongodb.com/community/forums/t/query-syntax-for-mongoexport/7266

1 Like