Details
-
New Feature
-
Resolution: Duplicate
-
Major - P3
-
None
-
2.6.0-rc3
-
None
Description
Currently it is not possible from a simple $match query on the aggregation framework to match fields of a document that might contain the same value:
test> db.example.insert( { 'colour': 'BLUE', 'color': 'BLUE' } )
|
Inserted 1 record(s) in 157ms
|
WriteResult({
|
"nInserted": 1
|
})
|
test> db.example.aggregate( {$match:{ "colour": "$color" } })
|
{
|
"result": [ ],
|
"ok": 1
|
}
|
given the semantics of the "$" operator we should be able to support it.