Details
-
Improvement
-
Resolution: Done
-
Minor - P4
-
None
-
2.8.0-rc3
-
None
-
Query
Description
db.a.update({_id:1}, {$push:{a:{$each:[]}}}, {upsert:1}) //creates a field
|
db.a.update({_id:1}, {$push:{a:{$each:[]}}}, {upsert:1}) // produces oplog entry
|
db.a.update({_id:1}, {$push:{a:{$each:[2,3]}}})
|
db.a.update({_id:1}, {$push:{a:{$each:[]}}}) // no oplog entry
|