I've started my MongoDB server with the --noscripting
option:
mongod --dbpath C:\MongoData --noscripting
However, I can still load JavaScript files and execute the code in them:
> load('/Users/d.banks/Documents/mongo-rocks/hello-world.js')
true
> Hello('Dave')
Hello Dave!
I assume that the script is running because it's client-side? If that's the case, what determines if a script is client or server side? If not, why is the script running?