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

Add new Deque/Set operation modifiers

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Write Ops
    • Labels:
      None

      Description

      $unshift - like $push, but to the start of the array, and with support for the $each construct like $addToSet.

      $pushToSet - like $push in that the supplied item(s) will end up at the end of the set in the supplied order - maintaining set semantics by removing pre-existing matching elements. Should support the $each construct.

      $unshiftToSet - just like $pushToSet, but adds items at the start of the array.

      The next two are more "nice to have's".

      $push - add support for the $each construct - $pushAll could then be deprecated

      $shift - just like $pop with reversed sign, i.e. {$pop:{a:-1}} is the same as {$shift:{a:1}}

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                13 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated: