Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3294

Add $arrayElemAt helper

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API
    • None

      Maybe

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

            Assignee:
            Unassigned Unassigned
            Reporter:
            hotdog929 hotdog929
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: