CSV to MongoDB Importer
A simple command line utility to quickly and easily import CSV files directly into MongoDB.
install it with:
npm install -g csv-to-mongodb
then run it with:
you will need the following data:
- Your MongoDB primary connection string.
- The path to your CSV file.
- The name of the collection.
- A unique identifier if you want to overwrite existing documents.