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
Post a Comment