I’m creating a rest api with NestJs & node, the application works fine if I’m continuously making queries however if I don’t make a query in lets say 5-10 minutes. The connection to the database will get disconnected.
error: terminating connection due to administrator command
I’m not sure if there is easy way to reconnect to the database, once it disconnects itself, because the application just throws an error once the database connection closes