Question · NestJS course · Module 3: TypeORM and Databases

The @ManyToOne decorator

On which side of the relation is @ManyToOne placed?

Answer options

  • On the side of the entity that is the 'many' in the relation (e.g., a legionary belongs to one legion)
  • On the side of the entity that is the 'one' in the relation
  • On both sides of the relation
  • In the configuration file

You can check the correct answer by solving this task in the CodeWorlds game.