I always used Mongo with Node, but now because of the existing data source I need to connect the node application with Mysql.
Sequelize seems like a good solution, but I don't understand how to handle a connection error, reconnection, and retry.
Checking for connection errors on first start .authenticate().then().catch(function(error){...});
But what if I lose my connection and want to connect again?
source
share