diff --git a/sample/13-mongo-typeorm/src/app.module.ts b/sample/13-mongo-typeorm/src/app.module.ts index cd82fe44bd4..846a5d30b3e 100644 --- a/sample/13-mongo-typeorm/src/app.module.ts +++ b/sample/13-mongo-typeorm/src/app.module.ts @@ -2,6 +2,7 @@ import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { join } from 'path'; import { PhotoModule } from './photo/photo.module'; +import { Photo } from './photo/photo.entity'; @Module({ imports: [ @@ -9,7 +10,7 @@ import { PhotoModule } from './photo/photo.module'; type: 'mongodb', host: 'localhost', database: 'test', - entities: [join(__dirname, '**/**.entity{.ts,.js}')], + entities: [Photo], synchronize: true, }), PhotoModule,