mongodb set 4 subdocument field code example
Example: $set
// https://mongodb.github.io/node-mongodb-native/markdown-docs/insert.html
//To update only selected fields, $set operator needs to be used. Following replacement object replaces author value but leaves everything else intact.
collection.update({_id:"123"}, {$set: {author:"Jessica"}});