Mongodb – How to save in Mongoose with await?
The below code works, but I would like to only use async/await, so my question is ยด: How can I turn cat.save().then(() => console.log('Saved in db')); into using await instead? The reason I have mongoose.connection.once() is to only send commands…