Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{_id:"12345",hash_field:{"foo":"bar"}}]
Query
db.collection.update({_id:"12345"},[{"$set":{hash_field:{$mergeObjects:["$hash_field",{"key1":"value1","key2":"value2"}]}}}])
Result