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

Helper for returning multiple elements of an array, not just the first

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Query Operations
    • None

    Description

      It is very common that users want to return multiple matching entries of an array within a document (not just the first as $ does) that it would enhance productivity to add a helper method (e.g. that could just use $unwind followed by $match under the covers). The aggregation framework can be viewed as overkill and more to learn for just this purpose.

      Attachments

        Activity

          People

            Unassigned Unassigned
            matt.kalan@mongodb.com Matt Kalan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: