获取您的 自己的 网站
db.posts.updateMany({}, { $inc: { likes: 1 } })              
{
  acknowledged: true,
  insertedId: null,  
  matchedCount: 5,   
  modifiedCount: 5,  
  upsertedCount: 0   
}
Atlas atlas-8iy36m-shard-0 [primary] blog>