I got bored and did a quick experiment. Nothing fancy, just a simple Nodejs API that stores your name and age into MySQL database.
The script is shown below. Notice that there's a console.log that prints the SQL statement before the query.
console.log is useful for debugging, but make sure you remove them in production :)