Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3834

LINQ3: Add First and Last operators to AstUnaryExpression

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.14.0
    • Affects Version/s: None
    • Component/s: LINQ3
    • None

      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.

       

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: