Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[]
Query
db.collection.update({_id:"123"},{$setOnInsert:{anotherField:123},$currentDate:{timestamp:true}},{upsert:true})
Result