Answers for "mongoimport how to import csv in db"

1

mongoexport csv with query

mongoexport -d database -c collection --type=csv --out file.csv --fields name,fromHour,fromMin,toHour,toMin --query '{"_id":"56a647bff167043ad6ee49c0"}'
Posted by: Guest on August-16-2020
0

import csv into mongodb

mongoimport --type csv -d database -c collection --headerline --drop index2020.csv
Posted by: Guest on October-02-2020

Browse Popular Code Answers by Language