Details
-
Bug
-
Resolution: Won't Do
-
Major - P3
-
None
-
*Location*: https://docs.mongodb.com/v3.2/reference/method/db.collection.findOneAndUpdate/
*User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.114 Safari/537.36 Vivaldi/1.9.818.50
*Referrer*: https://www.google.hr/
*Screen Resolution*: 1920 x 1080
*Location*: https://docs.mongodb.com/v3.2/reference/method/db.collection.findOneAndUpdate/ *User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.114 Safari/537.36 Vivaldi/1.9.818.50 *Referrer*: https://www.google.hr/ *Screen Resolution*: 1920 x 1080
Description
returnNewDocument option did nothing with upsert.
In the source code documentation there is option returnOriginal that, when set to false, returns new document.