获取您的网站
db.posts.updateOne( { title: "Post Title 1" }, { $set: { likes: 2 } } )              
{
  acknowledged: true,
  insertedId: null,  
  matchedCount: 1,   
  modifiedCount: 1,  
  upsertedCount: 0   
}
Atlas atlas-8iy36m-shard-0 [primary] blog>