Question · NestJS course · Module 3: TypeORM and Databases

Registering a repository in a module

How do you register an entity repository in a NestJS module?

Answer options

  • TypeOrmModule.forRoot([Legionary])
  • TypeOrmModule.register([Legionary])
  • TypeOrmModule.forFeature([Legionary])
  • TypeOrmModule.create([Legionary])

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