Skip to content

Commit

Permalink
fix(mongo): do not create collections for embeddable entities
Browse files Browse the repository at this point in the history
Closes #4495
  • Loading branch information
B4nan committed Jul 24, 2023
1 parent 96d87ba commit 0759df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mongodb/src/MongoSchemaGenerator.ts
Expand Up @@ -99,7 +99,7 @@ export class MongoSchemaGenerator extends AbstractSchemaGenerator<MongoDriver> {

const promises: [string, Promise<string>][] = [];

for (const meta of Object.values(this.metadata.getAll())) {
for (const meta of this.getOrderedMetadata()) {
if (Array.isArray(options?.retry) && !options.retry.includes(meta.collection)) {
continue;
}
Expand Down

0 comments on commit 0759df0

Please sign in to comment.