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

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -