-
Type: Bug
-
Resolution: Done
-
Priority: Critical - P2
-
Affects Version/s: None
-
Component/s: None
-
Empty show more show less
db.collection.findOneAndUpdate(
{uid:undefined})
causes an update of the random record.
Instead, it should behave the same as
db.collection.findOneAndUpdate(
)
which works as expected since there are no records with uid:null.
Similar issue with db.collection.findOne(
{uid: undefined}) - returns result equivalent to db.collection.findOne({})