MongoDB Tutorial 19 : Executing MongoDB shell commands from Javascript file


shell command to execute the script :

mongo 127.0.0.1/my-profile-db --username='username' --password='pwd' mongodb-script.js


mongodb-script.js will contains the set of queries that we want to get execute in mongo.

Comments

Popular posts from this blog

Unix Tutorial 14 : Text Processing Commands 1

Sqoop tutorial 7 : File Formats

Unix Tutorial 12 : Loop Types