-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
Observed behavior: see test below
Expected behavior: tbd (either honor all inclusion specifications or assert consistently)
c = db.c; c.drop(); c.save( { a:'foo', b:{ c:'bar' } } ); // Only the b:a inclusion is applied. printjson( c.aggregate( { $project:{ b:{ a:1 }, 'b.c':1 } } ) ); // Reversing the $project fields triggers an assertion. printjson( c.aggregate( { $project:{ 'b.c':1, b:{ a:1 } } } ) );
- is related to
-
SERVER-6206 need a policy for incompatible types in operators in aggregation expressions
- Closed