restore mongodb code example
Example 1: import dump mongodb
mongorestore -d db_name /path/
mongorestore -d db_name -c collection_name /path/file.bson
Example 2: mongo restore collections
mongorestore --port 27017 --db restoredTest /mydata/restoredata/test --drop
Example 3: mongo restore collections
mongorestore --port <port> --db <destination database> <data-dump-path/database> --drop