Details
-
Improvement
-
Resolution: Done
-
Minor - P4
-
None
Description
The documentation at http://www.mongodb.org/display/DOCS/Updating#Updating-%24rename doesn't specify the behavior of $rename when the source field doesn't exist and the destination field does exist. I believe the current behavior is to unset the destination, which was very surprising to me at least.
Thanks!
Attachments
Issue Links
- depends on
-
SERVER-5983 $rename unsets target field x, if multiple renames are specified where at least x has no source
-
- Closed
-