Is it possible to detect that the database is not running with Mongoose ?
The straight forward works fine for me:
mongoose.Connection.STATES.connected === mongoose.connection.readyState