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

$pull with $elemMatch and $in does not work

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.7.1
    • Component/s: Write Ops
    • None
    • Environment:
      Wed Oct 27 08:59:28 db version v1.7.2-pre-, pdfile version 4.5
      Wed Oct 27 08:59:28 git version: 5b1d4d2b75b356b5fb131d702699bca35cd44e7b
    • ALL

      "db.bar.update({}, {$pull: {y: {$elemMatch: {a: 2}}}}, false, true)" works, but
      "db.bar.update({}, {$pull: {y: {$elemMatch: {a: {$in: [2,3]}}}}}, false, true)" does not.

      Sample document:
      {x: 0, y: [

      {a:1}

      ,

      {a:2}

      ]}

            Assignee:
            Unassigned Unassigned
            Reporter:
            tonyh Tony Hannan
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: