I am trying to export a database called asset-management and all collections where req.user.id except the users collection. I can't seem to get the below to work.
mongoexport --db asset-management --collection * --type=csv --query '{"author.id": req.user.id}' --out userbackup.csv
I get this error message:
Error parsing command line: unknown option type