I have a mongoose schema like this - now the default keyword in url field works but how do i set a similar default value to only id field in the comments section?
var feedSchema = mongoose.Schema({
url:{type:String, unique:true, default: uuid.v4()},
comments:[{
id:String,
text:String,
username:String
}],
});