[SERVER-957] Support combining $in and $all on a single field Created: 04/Apr/10  Updated: 19/Apr/11  Resolved: 19/Apr/11

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Mathias Stearn Assignee: Aaron Staple
Resolution: Duplicate Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

> db.test.insert(

{a:[2,3,4,5]}

)
> db.test.findOne({a: {$in:[1,2]}})
{
"_id" : ObjectId("4bb9b60dccf9c6e519c4d1fd"),
"a" : [
2,
3,
4,
5
]
}
> db.test.findOne({a: {$all:[3,4]}})
{
"_id" : ObjectId("4bb9b60dccf9c6e519c4d1fd"),
"a" : [
2,
3,
4,
5
]
}
> db.test.findOne({a: {$in:[1,2], $all: [3,4]}})
null



 Comments   
Comment by Aaron Staple [ 19/Apr/11 ]

This is the same as SERVER-2165. Marking this as a duplicate of SERVER-2165 since that issue is higher priority.

Generated at Thu Feb 08 02:55:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.