-
Type: Task
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: manual
-
Labels:
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!
- depends on
-
SERVER-5983 $rename unsets target field x, if multiple renames are specified where at least x has no source
- Closed