Calling save() on the object of a model in Mongoose doesn't save the record to MongoDB
I have some backend code written in Nodejs that identifies the user and sends an OTP to their email. Before I send the OTP via mail, I want to store it in my MongoDB database, so that I can later…