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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Query Operations
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: