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

Add new Deque/Set operation modifiers

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Write Ops
    • Labels:
      None
    • Query

      $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}}

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

              Created:
              Updated:
              Resolved: