Skip to content

Commit 91acb79

Browse files
Merge pull request #3250 from k-kbk/fix-minor-typos
docs(mikroorm): fix minor typos
2 parents b08f2b0 + 11fb608 commit 91acb79

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

content/recipes/mikroorm.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ import { SqliteDriver } from '@mikro-orm/sqlite';
3232
controllers: [AppController],
3333
providers: [AppService],
3434
})
35-
export class AppModule {
36-
}
35+
export class AppModule {}
3736
```
3837

3938
The `forRoot()` method accepts the same configuration object as `init()` from the MikroORM package. Check [this page](https://mikro-orm.io/docs/configuration) for the complete configuration documentation.
@@ -67,7 +66,7 @@ export class AppModule {}
6766
Afterward, the `EntityManager` will be available to inject across the entire project (without importing any module elsewhere).
6867

6968
```ts
70-
// Import everytyhing from your driver package or `@mikro-orm/knex`
69+
// Import everything from your driver package or `@mikro-orm/knex`
7170
import { EntityManager, MikroORM } from '@mikro-orm/sqlite';
7271

7372
@Injectable()
@@ -246,7 +245,7 @@ The `@mikro-orm/nestjs` package exposes `getRepositoryToken()` function that ret
246245
PhotoService,
247246
{
248247
// or when you have a custom repository: `provide: PhotoRepository`
249-
provide: getRepositoryToken(Photo),
248+
provide: getRepositoryToken(Photo),
250249
useValue: mockedRepository,
251250
},
252251
],

0 commit comments

Comments
 (0)