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

Rename in update allows creating "$" prefixed fields

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.6.0
    • Write Ops
    • Minor Change
    • ALL

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: