how to import database mongodb code example
Example 1: how to import a file from ones directory into mongodb
mongoimport --db test --collection inventory ^
--authenticationDatabase admin --username --password ^
--drop --file ~\downloads\inventory.crud.json
Example 2: mongoid import database
mongorestore -d db_name dump_folder_path