Mongodb – Mongoose model saves default date as that of last time the server was started at
I have this mongoose model const reportUsSchema = new mongoose.Schema({ texts: [ { text: { type: String, default: "" }, date_time: { type: Date, default: new Date() }, }, ], }); I want this: Whenever a new text is pushed…