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

make $pull support object matching

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0
    • Affects Version/s: None
    • Component/s: Write Ops
    • Labels:
      None
    • Minor Change

      if you have
      { a : [

      { x : 1 }

      ,

      { x : 1 , b : 2 }

      ] }
      and do this update:
      { $pull : { a :

      { x : 1 }

      } }
      previously it would have only removed the first entry, now it will do both

      you can also do things like:
      { $pull : { a : { x :

      { $gt : 5 }

      } } }

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            eliot Eliot Horowitz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: