-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.1.2
-
Component/s: Write Ops
-
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.