Skip to content

Commit 976cf68

Browse files
authored
docs: make example less specific
1 parent 9682b81 commit 976cf68

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

content/techniques/sql.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -580,13 +580,8 @@ export class AppModule {}
580580
> ```typescript
581581
> TypeOrmModule.forRootAsync({
582582
> name: 'albumsConnection',
583-
> useFactory: (config: ConfigService) =>
584-
> ({
585-
> ...config.get('db'),
586-
> host: 'album_db_host',
587-
> entities: [Album],
588-
> } as TypeOrmModuleOptions),
589-
> inject: [ConfigService],
583+
> useFactory: ...,
584+
> inject: ...,
590585
> }),
591586
> ```
592587
> See [`@nestjs/typeorm` issue](https://github.com/nestjs/typeorm/issues/86).

0 commit comments

Comments
 (0)