[SERVER-6465] a way to check if a value is in an array in the object Created: 16/Jul/12 Updated: 15/Aug/12 Resolved: 16/Jul/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Matt Dannenberg | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
Given objects of the form {name: "Billy" classes: ["history", "math", "chemistry" ]}, there is no way to find all the kids who take both math and chemistry using the aggregation framework. |
| Comments |
| Comment by Matt Dannenberg [ 16/Jul/12 ] |
|
$match can do it using $all |