-
Type: New Feature
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.6.0-rc3
-
Component/s: Aggregation Framework
-
None
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.