MongoDB external script file

$ echo "print('hello');" > test.js
$ ./mongo test.js
MongoDB shell version: 1.3.2-
url: test
connecting to: test
hello
Topics: MongoDB

Related Code Examples