NestJS - Database with TypeORM
Which decorator is used to define a simple column in a NestJS entity?
@Column() is used to define a regular column in the database table.@Entity() defines the whole entity, @PrimaryColumn() defines a primary key column, and @JoinColumn() is for relations.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions