[SERVER-10588] make $cond accept object as argument Created: 21/Aug/13  Updated: 27/Nov/13  Resolved: 26/Aug/13

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 2.5.3

Type: New Feature Priority: Major - P3
Reporter: Matt Dannenberg Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DOCS-1920 Document : make $cond accept object a... Closed
Backwards Compatibility: Fully Compatible
Participants:

 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



 Comments   
Comment by auto [ 26/Aug/13 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-10588 $cond accepts an object with the fields if, then, and else (a la $map and $let)
Branch: master
https://github.com/mongodb/mongo/commit/4dd9f1651b748e8640d4ea75031adffa097be3da

Generated at Thu Feb 08 03:23:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.