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

make $cond accept object as argument

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.3
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Fully Compatible

      Rather than only allowing an array we should allow an object with the fields 'if', 'then' and 'else' to be consistent with the syntax of $map and $let

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            matt.dannenberg Matt Dannenberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: