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
Prasad_Saya
(Prasad Saya)
September 24, 2021, 12:59am
2
Hello @Chase_Russell1 , you can look at this similar post for an answer about specifying a date query (with --query
option) syntax:
Hi,
I’m trying to pass in a query to mongoexport like this:
mongoexport --uri=“mongodb+srv://dev:removed@server/feedback” --collection=entries --query=’{ “date”: { “$lt”: { “$date”: “2020-02-28T00:00:00.000Z” } } }’ --out=dispatcher.json
But I am getting an error:
2020-07-28T12:43:39.366+0100 query ‘[123 32 100 97 116 101 58 32 123 32 36 108 116 58 32 123 32 36 100 97 116 101 58 32 50 48 50 48 45 48 50 45 50 56 84 48 48 58 48 48 58 48 48 46 48 48 48 90 32 125 32 125 32 125]’ is not valid …
1 Like