Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{a:1,b:"https://my.url/123433",c:"https://long-long-long-url.com"}]
Query
db.collection.update({b:"https://my.url/1234"},{$setOnInsert:{a:2,c:"https://another-long-long-long-url.com"}},{upsert:true})
Result