From 77528fbd878dd44fca4fb7cec5dcce581349b587 Mon Sep 17 00:00:00 2001 From: Erik Christensen Date: Wed, 9 Jan 2019 21:56:01 -0500 Subject: [PATCH] README fixes --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 557eae4..5785d55 100644 --- a/README.md +++ b/README.md @@ -58,9 +58,9 @@ export class CatsRepository { } ``` -### Asynchrous configuration +### Asynchronous configuration -If you want to pass in Mongo configuration options from a ConfigService or other provider, you'll need to perform the Mongo module configuration asynchronously, using `MongoModule.forRootAsync()`. The are several different ways of doing this. +If you want to pass in Mongo configuration options from a ConfigService or other provider, you'll need to perform the Mongo module configuration asynchronously, using `MongoModule.forRootAsync()`. There are several different ways of doing this. #### Use a factory function @@ -121,7 +121,8 @@ If you wish to instead import your MongoConfigService class from a different mod ```typescript import { Module } from '@nestjs/common' -import { MongoModule, MongoOptionsFactory, MongoModuleOptions } from 'nest-mongodb' +import { MongoModule } from 'nest-mongodb' +import { ConfigModule, ConfigService } from '../config/config.service' @Module({ imports: [MongoModule.forRootAsync({