• Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 7.1.0
    • Component/s: None
    • Labels:
      None

      MongoDB allows customers to store javascript functions on the server in a system collection called system.js.

      The functions customer stored within the system.js collection could be used within aggregations and queries such as mapReduce and $where respectively. 

      Starting in MongoDB 5.0 mapReduce is deprecated in favor of an aggregation pipeline and for $where alternatives such as $expr are preferred due to better performance.

      System.js should be deprecated as the native built-in capabilities of the aggregation framework have increased and $function exists if custom expressions are needed.

            Assignee:
            matt.panton@mongodb.com Matt Panton
            Reporter:
            matt.panton@mongodb.com Matt Panton
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: