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

make $cond accept object as argument

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.3
    • None
    • Aggregation Framework
    • None
    • Fully Compatible

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: