NestJS - Database with TypeORM
Which of the following is the correct syntax to define a ManyToMany relation between
User and Role entities in NestJS TypeORM?User and Role entities in NestJS TypeORM?@ManyToMany decorator is used to define many-to-many relations between entities.@ManyToMany(() => Role) and defines roles as an array, which is the correct syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions