-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Write Ops
-
None
-
ALL
As a result, a '$' field may be inserted when an expected array is absent.
> c.save( {} ); > c.update( {}, { $set:{ 'x.$.y':1 } } ) > c.findOne() { "_id" : ObjectId("4f6baa5bf1d7af9aaed0f840"), "x" : { "$" : { "y" : 1 } } }
- duplicates
-
SERVER-6669 update lacking positional match creates bad document
- Closed