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

FindAndModify throw exception if new:true is set

    • ALL

      Executing a findandmodify with the new:true option set causes exception to be thrown.

      Steps to repro:

      1. Add document to collection "TestPeople"

      {"FirstName":"John"}

      2. Call FindAndModify with $set operator & true to return new document {query:

      {"FirstName":"John"}

      ,update:{$set:{"FirstName":"Tim"}},new:true}
      3. Verify update has been done

      I've also included a screenshot of my console repro of the issue.

        1. NOTCRAIG.log
          18 kB
        2. Screen Shot 2012-06-29 at 3.08.54 PM.png
          Screen Shot 2012-06-29 at 3.08.54 PM.png
          17 kB

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            davidmohara David O'Hara
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: