-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 1.14.0
-
Component/s: Aggregation pipeline, Compass
-
None
-
Sprint Vanilla Ice
$replaceRoot Stage throws error event on correct syntax as below
gaurav> db.produce.aggregate( [{$replaceRoot: { newRoot: "$in_stock" }} ] )
But works well with this syntax:
gaurav> db.produce.aggregate( [ { $replaceRoot: { newRoot: {newRoot:"$in_stock"} } } ] )
See attachments for details.