mongo import db code example
Example 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
Example 2: mongoid import database
mongorestore -d db_name dump_folder_path