list - Exporting several arrays from all documents in a mongodb database -
mongodb's documentation not seem cover this. after several hours of mixing different commands stand defeated.
i have hundreds of documents inside collection in mongodb database. in every document have array called "hashes", in documents array contains list of hashes (md5, sha1 etc...). want export these hashes text file, or list them in gui/terminal.
i've included image want export highlighted in yellow.
this command derived documentation lalit agarwal provided. wanted.
./mongoexport --port 27017 -db paste_db -collection pastes --fields hashes --csv > out.csv
Comments
Post a Comment