Tag Archives: data export

Export data collection from mongodb to json

for exporting a data collection to a json you can use this simple command: mongoexport –jsonArray -d DATABASE-NAME -c collectionName[, collectionName2,…] To write data to a file you just append a redirect mongoexport –jsonArray -d DATABASE-NAME -c collectionName[, collectionName2,…] > … Continue reading

Posted in MongoDB | Tagged , | Leave a comment