Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-64

$rename documentation should explain the behavior when the original field isn't present

      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!

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            nsanch Neil Sanchala
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              11 years, 28 weeks, 1 day ago