Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-45457

Allow disabling system.js on a per-expression basis

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • Query 2020-02-10, Query 2020-02-24

      We would like to move away from system.js for new Javascript operators such as $function and $accumulator. But for backwards compatibility we need to continue to support it for $where and MapReduce, even though these will desugar to $function and $accumulator.

      The switch should be per-expression, not per query: in a query containing both $where and $function, the $where expression should see system.js functions but the $function expression should not.

            Assignee:
            katherine.wu@mongodb.com Katherine Wu (Inactive)
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: