title: Decimal value in Postgresql returned as String in Node.js
body: <p>When I run a query to my <strong>postgresql</strong> database on a <strong>node.js</strong> server, the value that I am getting is of variable type <strong><em>string</em></strong> when in fact it is a <strong><em>decimal</em></strong> in the postgresql database.</p>
  
  <p>I am not sure why my decimals or even bigInts are returning as type strings. I am using knex as my ORM if that makes a difference. So far what I have read online is not very clear about what to do, and it seems as if this happens automatically to preserve precision???</p>
  
  <p>What is the best work-around for this? Is it best to convert the string variable I am returned from my query into a decimal using parseFloat?</p>