Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15621

Rename in update allows creating "$" prefixed fields

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.0
    • Component/s: Write Ops
    • Labels:
    • Minor Change
    • ALL

      db.a.insert({_id:1, a:1})
      db.a.update({a:1}, {$rename:{a:"b.$foo"}})
      db.a.find()
      {_id:1, b:{$foo:1}}
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: