相关疑难解决方法(0)

nestjs Using ConfgService with TypeOrmModule

I set up a ConfigService as described in docs https://docs.nestjs.com/techniques/configuration

how can I use this service with the the TypeOrmModule?

TypeOrmModule.forRoot({
  type: 'mysql',
  host: 'localhost',
  port: 3306,
  username: 'root',
  password: 'root',
  database: 'test',
  entities: [__dirname + '/**/*.entity{.ts,.js}'],
  synchronize: true,
}),
Run Code Online (Sandbox Code Playgroud)

nestjs

0
推荐指数
2
解决办法
493
查看次数

标签 统计

nestjs ×1