I'm having trouble with a save on subdocument.
Im calling save method on parent model but it only saves once. When theres one subdocument it does not save another one.
const reply = await Comment
.save({
_id: commentID,
answers: [{
author: author,
content: content
}]
})
I assume that your schema for answers is the
Schema.Types.Mixed. If you modify these, you need to usemarkModifiedto tell Mongoose that you changed it (this only applies to Mixed, not String or anything else like that).