Question : mongodb script to update where condition @medium
Answered by : philani-sithembiso-ndhlela
Employee_Name =”Daniel Morales”
db.Employees.update(
{"Emp_ID" :100},
{$set:{"Employee_Name" :"Daniel Morales"}});
WriteResult({"nMatched": 1, "nUpserted: 0, "nModified":1 })
Source : https://medium.com/@KnowledgeHut/how-to-update-document-in-mongodb-bdf07b8fd6ad | Last Update : Fri, 19 Aug 22