Export MongoDB records to CSV

1124355 pts.
Tags:
CSV
MongoDB
Could I possibly export my MongoDB records to a CSV file? I've tried this code:
mongoexport --host localhost --db dbname --collection name --csv > test.csv
But it keeps telling me to specify the fields that I want to export. Can I just export everything (not specify which fields)? Thank you.
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Thanks for coming to ITKE.

I searched the web and found a few sites that might assist you.

Here is a like to one of them:

http://stackoverflow.com/questions/6814151/how-to-export-collection-to-csv-in-mongodb

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: