Details
-
Bug
-
Status: Closed
-
Minor - P4
-
Resolution: Fixed
-
None
-
MacOSX
-
ALL
-
Description
This query works in all 2.5.1 (unstable) and all stable builds:
db.roles.find({ "owner": {
|
"$ref": "users",
|
"$id": ObjectId("51fac2e08c0c23f6c3000046")
|
}});
|
This query does not work in 2.5.1 (unstable) but does work in all stable builds:
db.roles.find({ "owner": {
|
"$in": [
|
{
|
"$ref": "roles",
|
"$id": {
|
"$id": "51fac2de8c0c23f6c3000030"
|
}
|
},
|
{
|
"$ref": "roles",
|
"$id": {
|
"$id": "51fac2de8c0c23f6c3000031"
|
}
|
}
|
]
|
}});
|
Here is a sample document:
{
|
"dateInserted": 1375388467,
|
"dateUpdated": 1375388545,
|
"owner": [
|
{
|
"$ref": "users",
|
"$id": ObjectId("51fac2e08c0c23f6c3000046")
|
}
|
],
|
"name": "Search Manager",
|
"key": "search-manager"
|
}
|
Attachments
Issue Links
- is duplicated by
-
SERVER-11552 $in queries with dbrefs are broken on 2.5.4
-
- Closed
-