SyntaxFix
Write A Post
Hire A Developer
Questions
As answer by Neodan mongoexport is quite useful with -q option for query. It also convert ObjectId to standard format of JSON "$oid". E.g:
-q
ObjectId
"$oid"
mongoexport -d yourdb -c yourcol --jsonArray --pretty -q '{"field": "filter value"}' -o output.json