Created
August 19, 2018 10:50
-
-
Save kerren/ba858db4652f63ee1555cc55cc03efc2 to your computer and use it in GitHub Desktop.
The correct database module for Nest.js - https://blog.entrostat.com/setting-up-a-database-module-in-nest-js/
This file contains hidden or 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: [ | |
| TypeOrmModule | |
| ] | |
| }) | |
| export class DatabaseModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment