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. enter image description here

this command derived documentation lalit agarwal provided. wanted.

./mongoexport --port 27017 -db paste_db -collection pastes --fields hashes --csv > out.csv


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -