Rename in update allows creating "$" prefixed fields

XMLWordPrintableJSON

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

      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
            Reporter:
            Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: