Execute script in js file on MongoDB server and view output in shell -


i have script can run on mongo command line follows :

load("test/my.js")

the script executes , returns true. however, see output of script in mongo shell. possible ?

thanks.

for output please use printjson.


Comments

Popular posts from this blog

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

javascript - CasperJS/PhantomJS failing SSL handshakes on some sites even with --ssl-protocol=any -

python - Received unregistered task using Celery with Django -