1. Change qualified first document
- db collection name .update. ({conditions: "Condition value"}, {$ set: {Modify Attribute: modified value}})
- The first parameter is the condition , the second parameter is modified content .
- You can change more, it is to continue to modify the input after the second argument in the form of the object content on it
- The modified content
2. Modify integrity
- It is to modify the contents of all the information you entered
modified result:
you can see all the content you enter becomes the value of the
3. The specified numeric type addition and subtraction operation
- db collection name .update ({condition name: "condition value"}, {$ inc: {modify property values: +/- many}}).
$ inc is: {}
successfully modified line of data affected
Modify the result of: