MongoDB Method: db.collection.updateOne()
Update/modify a single existing document in a collection. The selection of the document is done by using some filters. If the collection does not already exist, then we have pass “upsert” option, if we want to create a new document.