title: Is there a way to make TypeORM return column id as string instead of number?
body: <p>This is my id column:</p>
  <pre><code>@PrimaryGeneratedColumn()
  id: number;
  </code></pre>
  <p>Is there a way to return this column as string? I don't want to change the type in database (it needs to be number because it needs to increment, right?), I just want to return it as string.</p>
  <p>I can do this:</p>
  <pre><code>@PrimaryGeneratedColumn()
  id: string;
  </code></pre>
  <p>but it doesn't change the return type, it makes the values being treated as string but it is still a number.</p>
  <p>I could also:</p>
  <pre><code>  @AfterLoad()
    idToString(): void {
      this.id = this.id.toString();
    }
  </code></pre>
  <p>but it is kinda tedious to use this method on every entity and every foreign key.</p>
  <p><strong>SOLUTION:</strong>
  It turns out that typeorm was returning number instead of string because it's column type was integer. When I changed column type to bigint it started to return string instead of number.</p>