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

MongoDB Tutorial 10 : Operations on Collections

Unix Tutorial 9 : Vi Editor

NoSql Tutorial 3 : CAP Theorm