[JAVA-3294] Add $arrayElemAt helper Created: 22/May/19  Updated: 03/Jun/19  Resolved: 03/Jun/19

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

Type: New Feature Priority: Major - P3
Reporter: hotdog929 Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates JAVA-3879 Builders for aggregation expressions Closed

 Description   

Maybe

collection.aggregate(
      Arrays.asList(
          Aggregates.project(
              Projections.fields(
                    Projections.computed(
                            "firstCategory",
                            Projections.arrayElemAt("$categories", 0)
                    )
              )
          )
      )
)



 Comments   
Comment by Esha Bhargava [ 03/Jun/19 ]

Thanks for the feature request. Please track JAVA-1949 to look for a full implementation of the aggregate expression builders.

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