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

Permit $rename with a source that is a prefix of the destination or vice versa

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying, Write Ops
    • None
    • Query Execution

    Description

      The current implementation of $rename prohibits any rename where the source and destination are along the same path: e.g., {$rename: {'a':'a.b'}} or {$rename: {'a.b':'a'}}. There is a TODO noting that it would be possible to relax this restriction.

      If we do want to make that change, now would be a good time, as we are making backwards-incompatible changes to update functionality.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: