title: How to convert string to bigint with parseInt() function
body: <p>I am trying to create CRUD for user in my App, but got the error below when I passed it through Postman:</p>
  
  <pre><code>invalid input syntax for type bigint: "NaN"
  </code></pre>
  
  <p>Please what is wrong with my code below?</p>
  
  <p>MY USER TABLE</p>
  
  <pre><code>CREATE TABLE user (
  id BIGSERIAL,
  username text NOT NULL UNIQUE,
  password text NOT NULL,
  is_deleted boolean DEFAULT false,
  created_at timestamp NOT NULL default now(),
  last_login timestamp NOT NULL default now(),
  PRIMARY KEY (id)
  );
  </code></pre>
  
  <p>CRUD FOR GET ONE USER</p>
  
  <pre><code>function getSingleUser(req, res, next) {
    const showoneuserquery = 'SELECT * FROM user where id = $1'
    const user_id = parseInt(req.params.id);
    db.one(showoneuserquery, user_id)
      .then(function (data) {
        res.status(200)
          .json({
            status: 'success',
            data: data,
            message: 'Retrieved ONE user'
          });
      })
  
      .catch(function (err) {
        return next(err);
      });
  }
  </code></pre>