Mongodb Update Single Field In Document Link to heading

Update single field of document Link to heading

db.mycollection.updateOne({}, {$set: {myField: 'newValue'}})
  • [[mongodb-snippets|MongoDB Snippets]]