Question: how to convert csv to mongodb?
Answer: –type: The input format to import: json, csv, or tsv. ... 
-d: Specifies what database to use. ... 
-c: Specifies what collection to use. ... 
–headerline: Specifies that the first row in our csv file should be the field names.
–drop: Specifies that we want to drop the collection before importing documents.