title: node.js async/await using with MySQL
body: <p>I need to get all results synchronized and append to a  string with async/await keywords like c#. </p>
  
  <p>I am new to node.js and I can not adapt this new syntax to my code.    </p>
  
  <pre><code>var string1 = '';
  var string2 = '';
  var string3 = '';
  var string4 = '';
  
  DatabasePool.getConnection(function(err, connection) {
  
          connection.query(query,function (err, result) {
              if (err){};
              string1 = result;
          });
  
          connection.query(query,function (err, result) {
              if (err){};
              string2 = result;
          });     
  
          connection.query(query,function (err, result) {
              if (err){};
              string3 = result;   
          });
  
          connection.query(query,function (err, result) {
              if (err){};
              string4 = result;
          }); 
  
         //I need to append all these strings to appended_text but  
         //all variables remain blank because below code runs first.
         var appended_text = string1 + string2 + string3 + string4;
  });
  </code></pre>