Mongoid has some pretty old API that allows using javascript in queries. It leads to some problems - see MONGOID-5647 for example. Server documentation discourages using server-side javascript.
I suggest we deprecate this API and see if there are any objections. If not, we remove it in the next major version.
https://www.mongodb.com/docs/mongoid/master/api/Mongoid/Criteria.html#for_js-instance_method
https://www.mongodb.com/docs/mongoid/8.1/reference/queries/index.html
- is cloned by
-
MONGOID-5681 Remove for_js API
- Backlog