Although these methods use JavaScript, most interactions with MongoDB do not use JavaScript but use an idiomatic driver in the language of the interacting application . If you do not need to perform server-side execution of JavaScript code, see Disable Server-Side Execution of JavaScript.