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
Running NestJS with such a configuration will result in generating two collections: users and address
Expected behavior
MikroORM should filter out embeddable classes from the entities array when it gets initialized. In other words, in our example, MikroORM should create only one single collection (i.e. users).
Versions
Dependency
Version
node
14.8.0
typescript
3.7.4
mikro-orm
4.2.3
@mikro-orm/mongodb
4.2.3
The text was updated successfully, but these errors were encountered:
Describe the bug
MikroORM creates unnecessary embeddable-related collections when it gets initialized with
ensureIndexes
set to true.To Reproduce
Steps to reproduce the behavior in Nestjs framework:
ensureIndexes
optionRunning NestJS with such a configuration will result in generating two collections:
users
andaddress
Expected behavior
MikroORM should filter out embeddable classes from the entities array when it gets initialized. In other words, in our example, MikroORM should create only one single collection (i.e.
users
).Versions
The text was updated successfully, but these errors were encountered: