[CSHARP-3834] LINQ3: Add First and Last operators to AstUnaryExpression Created: 06/Sep/21 Updated: 28/Oct/23 Resolved: 04/Oct/21 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | LINQ3 |
| Affects Version/s: | None |
| Fix Version/s: | 2.14.0 |
| Type: | Task | Priority: | Unknown |
| Reporter: | Robert Stam | Assignee: | Robert Stam |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Epic Link: | CSHARP-2608 | ||||||||
| Description |
|
Add support for First and Last unary operators to AstUnaryExpression. However, because the $first and $last aggregation expression operators are only supported in server versions >= 5.0.0 they need to be rendered using $arrayElemAt with indexes 0 and -1 respectively.
|