Created
August 19, 2018 10:46
-
-
Save kerren/911acb32129913ebd8b2435c8c016820 to your computer and use it in GitHub Desktop.
The INCORRECT database module - https://blog.entrostat.com/setting-up-a-database-module-in-nest-js/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { TypeOrmModule } from '@nestjs/typeorm'; | |
import { databaseConnections } from './database-connections'; | |
import { Module } from '@nestjs/common'; | |
@Module({ | |
imports: [ | |
...databaseConnections | |
], | |
exports: [ | |
...databaseConnections | |
] | |
}) | |
export class DatabaseModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment