Synchronous database queries with Node.js
I have a Node.js/Express app that queries a MySQL db within the route and displays the result to the user. My problem is how do I run the queries and block until both queries are done before redirecting the user to the page they requested? In my example I have 2 queries that need to … Read more