In Mongodb, Mongoexport for collection is working on windows but when use –query getting the below error
Failed: error parsing query as Extended JSON: invalid JSON input
–query="{‘CreatedOnUtc’ : { ‘$gt’ : ISODate(‘2021-04-22T08:36:28.869Z’)}}"
In Mongodb, Mongoexport for collection is working on windows but when use –query getting the below error
Failed: error parsing query as Extended JSON: invalid JSON input
–query="{‘CreatedOnUtc’ : { ‘$gt’ : ISODate(‘2021-04-22T08:36:28.869Z’)}}"
2
Answers
As per the documentation
Swap the single and double quotes in your query field.
For ex.
I think the quotes are inverted, try the following