MongoDB batch modify values

class:MongoDB views:134 Author:xiaomo314
Command
db.getCollection('rule').update({"key":".$"},{$set:{"key":"\\\\.$"}},false, true)
Explanation
{"key":".$"} : query condition
{$set:{"key":"\\\\.$"}} : update statement
false : Do not insert data if it does not exist
true : all the query data is processed
Operation result
Updated 5615 existing record(s) in 227ms

This platform is gradually under construction, more development orders are gradually included, any questions or Suggestions can be Contact Us