pg-promise returns integers as strings
There is a lot below that’s been accumulating historically. But if you are using Node.js v10.4.0 or later, you can skip all this, and jump into section UPDATE-2 at the bottom. This is indeed the standard behavior. bigint is 64-bit, and all 64-bit integers are returned by the underlying node-postgres driver as type string, while … Read more