Skip to content

Commit

Permalink
README fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
erikc5000 committed Jan 10, 2019
1 parent 69904bc commit 77528fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 77528fb

Please sign in to comment.