Here are few lines of my code
app.route('/api/shorturl/new')
.post((req, res) => {
urlData.findOne({ name: 'counter' }).select(['count']).exec((err, data) => {
if (err) return console.log(err)
console.log(data.toObject().count)
})
})
I got MongooseError: Operation urldatas.findOne() buffering timed out after 10000ms
Is Mongoose Down? Few hours ago my code is working just fine.