[JAVA-3012] There's no builder for $cond Created: 30/Sep/18  Updated: 11/Sep/19  Resolved: 05/Nov/18

Status: Closed
Project: Java Driver
Component/s: Builders
Affects Version/s: 3.8.2
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Gabriel Zimmermann Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When using builders for the aggregation framework, I couldn't find one for the `$cond` operator. This forced me to rewrite my whole aggregation query using `Document` since I couldn't mix the two.

If this builder exists, then I couldn't find it in the documentation.



 Comments   
Comment by Jeffrey Yemin [ 30/Sep/18 ]

That's true, we don't have builders for expressions. The issue for that is JAVA-1949 (please vote for it!).

But you shouldn't have to re-write the whole pipeline using Document. Can you elaborate with some sample code?

Generated at Thu Feb 08 08:58:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.