We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9607b9b commit e83b115Copy full SHA for e83b115
1 file changed
sample/05-sql-typeorm/src/app.module.ts
@@ -1,6 +1,5 @@
1
import { Module } from '@nestjs/common';
2
import { TypeOrmModule } from '@nestjs/typeorm';
3
-import { Photo } from './photo/photo.entity';
4
import { PhotoModule } from './photo/photo.module';
5
6
@Module({
@@ -12,7 +11,7 @@ import { PhotoModule } from './photo/photo.module';
12
11
username: 'root',
13
password: 'root',
14
database: 'test',
15
- entities: [Photo],
+ autoLoadEntities: true,
16
synchronize: true,
17
}),
18
PhotoModule,
0 commit comments