Question · NestJS course · Module 3: TypeORM and Databases
TypeORM configuration in NestJS
How do you register TypeORM in the main NestJS module?
Answer options
- TypeOrmModule.forRoot(config) in imports
- TypeOrmModule.register() in providers
- TypeOrmModule.init() in controllers
- TypeOrmModule.connect() in exports
You can check the correct answer by solving this task in the CodeWorlds game.