edit data mongodb code example Example: edit file in mongodb db.Employee.update( {"Employeeid" : 1}, {$set: { "EmployeeName" : "NewMartin"}});