-
I have over 100 fields and I am looking for a way so that I can just export the entire collection as CSV format
-
The command-line is asking to provide all fields via
-f [ –fields ] arg comma seperated list of field names e.g. -f
name,age
- is there a way to get the entire collection like using dump but not in bson format?
- I need CSV data
Thank you
You could create a file with the field names (may be easier for you):
In your case they might all be the same but the reason you have to specify the field names is because they could be different for every document however the field names in the csv must be fixed.