[JAVA-1488] Helper for returning multiple elements of an array, not just the first Created: 01/Oct/14 Updated: 08/Nov/17 Resolved: 08/Nov/17 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Query Operations |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Matt Kalan | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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. |