Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. imports: [
  2. ...,
  3. ConfigModule, // Global
  4. MongooseModule.forRootAsync({
  5. imports: [ConfigModule],
  6. useFactory: async (configService: ConfigService) => ({
  7. uri: configService.mongodbUrl,
  8. useNewUrlParser: true,
  9. useCreateIndex: true,
  10. }),
  11. inject: [ConfigService],
  12. }),
  13. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement