Answers for "add new field using update in mongoose"

0

add new field using update in mongoose

User.update(
     {uid: 'uid'}, 
     {vehicle_status : 'vehicleSatus' },
     {multi:true}, 
       function(err, numberAffected){  
       });
Posted by: Guest on July-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language