-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: MongoDB 3.2
-
Environment:linux
-
Empty show more show less
I mistakenly did not give a field, but a string instead in ` col.findOneAndUpdate('56cd129222222', ...`
Thinking the first index field would automatically be searched....
This caused the behavior to treat it as a empty document, when it's not exactly empty...nor is it a document that is empty.
The result was the first document being modified. This is confusing and I do not see a real life use case for this kind of behavior.
I would like to request that nothing is returned when a non blank arg is given.