Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5651

Deprecate for_js API

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 9.0.0
    • Affects Version/s: None
    • Component/s: Query
    • None

      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

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: