You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/recipes/mikroorm.md
+3-4
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,7 @@ import { SqliteDriver } from '@mikro-orm/sqlite';
32
32
controllers: [AppController],
33
33
providers: [AppService],
34
34
})
35
-
exportclassAppModule {
36
-
}
35
+
exportclassAppModule {}
37
36
```
38
37
39
38
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 {}
67
66
Afterward, the `EntityManager` will be available to inject across the entire project (without importing any module elsewhere).
68
67
69
68
```ts
70
-
// Import everytyhing from your driver package or `@mikro-orm/knex`
69
+
// Import everything from your driver package or `@mikro-orm/knex`
0 commit comments