MongoDB - update data

Posted by Professionaluser under Sql Server category on | Points: 40 | Views : 979
update() method can be used to update particular field data with new

>db.CollectionName.update ({'Name':'ABC'},{$set:{ 'Name':'New ABC'}})

above command updates collection data which document has name as ABC with New ABC

Comments or Responses

Login to post response