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: libs/json-api/json-api-nestjs-microorm/README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,3 +18,36 @@ export type MicroOrmParam = {
18
18
};
19
19
20
20
```
21
+
22
+
## NOTE: MikroORM Default Named Context Issue in NestJS
23
+
24
+
[@mikro-orm/nestjs](https://github.com/mikro-orm/nestjs) does not create a [default named context](https://github.com/mikro-orm/nestjs/discussions/214).
25
+
26
+
As a result, the module initialization behaves differently depending on whether a single or multiple connections are used.
27
+
More specifically, the [dependency injection token for MikroORM differs](https://github.com/mikro-orm/nestjs/issues/213) between one and multiple database connections.
28
+
29
+
To maintain a consistent JSON:API module configuration across different database adapters,
30
+
I decided **not to add extra conditional checks** in the setup.
31
+
32
+
For everything to work correctly, @mikro-orm/nestjs should be integrated using the following module:
0 commit comments