add new field using update in mongoose

Solutions on MaxInterview for add new field using update in mongoose by the best coders in the world

showing results for - "add new field using update in mongoose"
Sophia
12 Apr 2019
1User.update(
2     {uid: 'uid'}, 
3     {vehicle_status : 'vehicleSatus' },
4     {multi:true}, 
5       function(err, numberAffected){  
6       });
7