NestJS - Database with TypeORM
What is a common mistake in this NestJS TypeORM module configuration?
@Module({
imports: [TypeOrmModule.forRoot({
type: 'postgres',
host: 'localhost',
port: 5432,
username: 'user',
password: 'pass',
database: 'testdb',
entities: [User],
})],
})
export class AppModule {}