Add $arrayElemAt helper

XMLWordPrintableJSON

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

      Maybe

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

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

                Created:
                Updated:
                Resolved: