LINQ3: All method should be translated to $allElementsTrue instead of $reduce

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.14.0
    • Affects Version/s: None
    • Component/s: LINQ3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Translate:

      document.F.All(x => predicate) 

      to:

      { $allElementsTrue : [{ $map : { input : "$F", as : "x", in : <predicate> } }] }

      instead of using `$reduce` (which we were using in an attempt to micro optimize, but which we have decided against at least for the time being).

              Assignee:
              Robert Stam
              Reporter:
              Robert Stam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: