Cannot run server-side javascript without the javascript engine enabled

How to enabled javascript engine in digital ocean

Welcome to the MongoDB community @jediiry_johnson !

Per Digital Ocean’s MongoDB Limits documentation, they do not support server-side JavaScript:

DigitalOcean Managed MongoDB does not support server-side Javascript. We support MongoDB’s more recent and secure Aggregation Pipeline framework.

Aggregation Pipeline queries are the recommended approach for improved security, performance, and concurrency. The db.eval() command has been deprecated since MongoDB 3.0 (March 2015) and was removed in MongoDB 4.2 (August 2019).

If you can share more details on what you are trying to do in server-side JavaScript, we can try to suggest an alternative approach.


This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.