Answers for "import data to mongodb"

2

mongodb import

mongodump -h <127.0.0.1>:<27017> -d <db> -u <user> -p <pw> -o ./
mongorestore ./
Posted by: Guest on May-24-2021
1

how to import a file from ones directory into mongodb

mongoimport --db test --collection inventory ^
          --authenticationDatabase admin --username <user> --password <password> ^
          --drop --file ~\downloads\inventory.crud.json
Posted by: Guest on June-16-2020
0

import data to mongodb

mongoimport --jsonArray --db YourDatabase --collection YourCollection --file Yourfile.json
Posted by: Guest on May-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language