Details
-
Improvement
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
None
-
None
Description
I think it would be interesting if
db.foo.updateOne({i:1}, {$set:{foo:7, bar:undefined}})
|
does the same than:
db.foo.updateOne({i:1}, {$set:{foo:7}, $unset:{bar:undefined}})
|
db.foo.updateOne({i:1}, {$set:{foo:7, bar:undefined}}) would be similar to JSON.stringify({foo:7, bar:undefined}) that have only the foo field