mongoose node how to set default value for model programmarly code example
Example: set default value mongoose
new Schema({
date: { type: Date, default: '12/10/1990' }
})
new Schema({
date: { type: Date, default: '12/10/1990' }
})