[JAVA-3158] Support for $ifNull Created: 30/Jan/19 Updated: 11/Sep/19 Resolved: 04/Feb/19 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | 3.6.4 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Vokail | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Java Driver for Mongodb 3.6.4 or superior does support $ifNull during aggregation? How to use it ?
|
| Comments |
| Comment by Vokail [ 05/Feb/19 ] |
|
So there is not plan to implement it ? I mean in the future ? |
| Comment by Jeffrey Yemin [ 04/Feb/19 ] |
|
Yes, the Java driver supports all aggregation expressions, though it does not provide any helpers for those expressions. You can just use the org.bson.Document class to construct an expression dynamically. |