[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

Generated at Thu Feb 08 03:11:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.