Last active
October 22, 2019 22:50
-
-
Save adsonrocha/58c2c908054cde485e1f50dc39387c02 to your computer and use it in GitHub Desktop.
Mongoose no NestJS
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 { Module } from '@nestjs/common'; | |
import { AppController } from './app.controller'; | |
import { AppService } from './app.service'; | |
import { UserModule } from './user/user.module'; | |
import { MongooseModule } from '@nestjs/mongoose'; | |
@Module({ | |
imports: [ | |
MongooseModule.forRoot('mongodb+srv://adsonrocha:<password>@cluster0-5efft.mongodb.net/test?retryWrites=true&w=majority'), | |
UserModule, | |
], | |
controllers: [AppController], | |
providers: [AppService], | |
}) | |
export class AppModule { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment