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

$move operator for moving a value somewhere else in the same document

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Write Ops
    • None
    • Query

    Description

      Three cases:

      • Move and overwrite: say moving property 'a.b.c' to 'x.y.z'
      • Multiple move, last overwrite: say moving property a to b, property b to c, property c to d overwriting d
      • Move to insert in array: say moving property x to 'a.3', shifting up all current elements from 3 onward. If the value being moved to is from an array, shift down that array.

      Currently all of these cases can require potentially large amounts of data to be passed back and forth, when the server really has all that information already.

      Attachments

        Activity

          People

            backlog-server-query Backlog - Query Team (Inactive)
            fresheneesz Billy Tetrud
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: