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

Add $in operator for $cond, etc., in aggregation framework.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
      None

      Description

      I was recently trying to do some array matching stuff with the aggregation framework. Making $in available as an operator within $cond would be excellent.

      See this stackoverflow response for more details of the use case:
      http://stackoverflow.com/questions/12576948/query-mongodb-array-and-sort-with-the-most-matched-elements/12577865#12577865

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                wes@skeweredrook.com Wes Freeman
                Participants:
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: