I created a REST API using NestJs with TypeORM. Basically this is my user entity
@Entity(\'User\') export class User extends BaseEntity { @PrimaryGenerated
Just add the select: false option to the column definition. With it, the column won't be selected unless explicitly added via addSelect, see the docs.
select: false
addSelect
@Entity() export class User { @Column({select: false}) password: string; }