I have been trying to import the csv data into mongodb using mongoimport. The collection is like this:
{
id:\"122234343\",
name: \"name1\",
children: [\"2223
collection is like below:
{
"_id" : ObjectId("580100f4da893943d393e909"),
"username" : "crystal",
"likes" : [ "running", "pandas", "software development" ]
}
below command for csv to mongodb:
mongoimport --db users --type csv --headerline --file /opt/backups/contacts.csv
actually Mongodb is non relational db so no need of creating two csv to import