mikro-orm
Advanced tools
Comparing version 0.7.3 to 0.7.4
@@ -201,3 +201,4 @@ "use strict"; | ||
const ids = Utils_1.Utils.unique(children.map(e => e[field].id)); | ||
await this.find(entities[0][field].constructor.name, { _id: { $in: ids } }); | ||
const meta = this.metadata[entities[0].constructor.name].properties[field]; | ||
await this.find(meta.type, { _id: { $in: ids } }); | ||
} | ||
@@ -204,0 +205,0 @@ runHooks(type, entity) { |
@@ -249,3 +249,4 @@ import { Collection as MongoCollection, Db, FilterQuery, ObjectID } from 'mongodb'; | ||
const ids = Utils.unique(children.map(e => e[field].id)); | ||
await this.find<BaseEntity>(entities[0][field].constructor.name, { _id: { $in: ids } }); | ||
const meta = this.metadata[entities[0].constructor.name].properties[field]; | ||
await this.find<BaseEntity>(meta.type, { _id: { $in: ids } }); | ||
} | ||
@@ -252,0 +253,0 @@ |
{ | ||
"name": "mikro-orm", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "Simple typescript mongo ORM for node.js based on data-mapper, unit-of-work and identity-map patterns", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
145839
3322