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

Line ending issue with Mercurial or Visual Studio -

php - Retrieving data submitted with Yii's CActiveForm -

fatal error - Android RunTimeError: Java.lang.RunTimeException: Unable to Instantiate activity -