I have the following code:
connection((db) => { db.collection(\'orders\') .updateOne( { \"_id\": req.body
The correct syntax is:
monDb.collection.updateOne( {"_id": ObjectID(req.params.id)}, { $set: updateDoc }, function(err, doc) { ... } );