Node + MySQL Chained Promises vs Async/Await
In this tutorial, I will walk you through two different methods of accessing a MySQL database in Node: through ES6’s promise syntax, and through ES7’s async/await syntax. I will illustrate how this is done using a real-world example, which goes multiple layers deep in our MySQL queries, accessing one-to-many relational tables based on the previous …