NestJS - Database with TypeORM
What is the purpose of the
@Entity() decorator in a NestJS application using TypeORM?@Entity() decorator in a NestJS application using TypeORM?@Entity()@Entity() decorator tells NestJS and TypeORM that the class represents a database table.@Column() define table columns, but @Entity() marks the whole class as a table.@Entity() = Table marker [OK]@Entity() means 'this class is a table' [OK]@Entity() with database connection setup@Entity() defines methods or styles@Entity() with @Column()15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions