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 11 : Conditional Statements

Unix Tutorial 12 : Loop Types

Unix Tutorial 17 : Advance Unix