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

Add new Deque/Set operation modifiers

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Minor - P4
    • Resolution: Won't Do
    • None
    • None
    • Write Ops
    • 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

              backlog-server-query Backlog - Query Team (Inactive)
              keithbranton Keith Branton
              Votes:
              13 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: