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

$pop multiple elements from an array at once

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

      Support

      { $pop : { field : -n  } }
      

      or

      { $pop : { field : n  } }
      

      where n is the number of elements to remove first or last in an array.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            mcatanzariti Michael Catanzariti
            Votes:
            14 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: