title: Converting result of MySql Query to Array
body: <p>I am getting RowPacketData after executing a query, now I want to convert that RowPacketData to an array so that I can perform different operations on it.</p>
  <pre><code>var query = `Select products.*, product_images.Image_Name 
  from products INNER JOIN product_images 
  ON products.Id=product_images.Product_Id ORDER BY Id limit ${LimitNum} OFFSET ${startNum}`;
  db.query(query , function(err,rows, fields)
  {
    if (err) 
    {
      res.status(500).send({ error: 'Following Error Occured : '+ err });
      console.log('Following Error Occured : ' + err);
    }
    else
    {      
      res.json(rows);
      console.log('20 Products Displayed on Page : ' + page);    
    }
  })
  </code></pre>
  <p>Note : I am using node js.</p>