Update
Update the entire object:
Or just update a single field of a document. In this case age:
You can also update multiple documents simultaneously by adding a third parameter. This query will update all documents where the name equals Tom:
If a new field is coming for update, that field will be added to the document.
If a document is needed to be replaced,
can be used.
Note: Fields you use to identify the object will be saved in the updated document. Field that are not defined in the update section will be removed from the document.
![image](/images/gyapti/user/93/anilbisht.jpg)
Anil Bist
Skills Mongodb
Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,Location :-Dehradun,Dehradun,Uttarakhand,India
Description:-
I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a
Explore