@mikro-orm/knex 6.4.13-dev.12 → 6.4.13-dev.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/query/QueryBuilder.js +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "6.4.13-dev.
|
|
3
|
+
"version": "6.4.13-dev.14",
|
|
4
4
|
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@mikro-orm/core": "^6.4.12"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "6.4.13-dev.
|
|
69
|
+
"@mikro-orm/core": "6.4.13-dev.14",
|
|
70
70
|
"better-sqlite3": "*",
|
|
71
71
|
"libsql": "*",
|
|
72
72
|
"mariadb": "*"
|
package/query/QueryBuilder.js
CHANGED
|
@@ -250,9 +250,12 @@ class QueryBuilder {
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
prop.targetMeta.props
|
|
253
|
-
.filter(prop =>
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
.filter(prop => {
|
|
254
|
+
if (!explicitFields) {
|
|
255
|
+
return this.platform.shouldHaveColumn(prop, populate);
|
|
256
|
+
}
|
|
257
|
+
return prop.primary && !explicitFields.includes(prop.name) && !explicitFields.includes(`${alias}.${prop.name}`);
|
|
258
|
+
})
|
|
256
259
|
.forEach(prop => fields.push(...this.driver.mapPropToFieldNames(this, prop, alias)));
|
|
257
260
|
return fields;
|
|
258
261
|
}
|
|
@@ -1272,7 +1275,6 @@ class QueryBuilder {
|
|
|
1272
1275
|
}
|
|
1273
1276
|
}
|
|
1274
1277
|
hasToManyJoins() {
|
|
1275
|
-
// console.log(this._joins);
|
|
1276
1278
|
return Object.values(this._joins).some(join => {
|
|
1277
1279
|
// console.log(join.prop.name, join.prop.kind, [ReferenceKind.ONE_TO_MANY, ReferenceKind.MANY_TO_MANY].includes(join.prop.kind));
|
|
1278
1280
|
return [core_1.ReferenceKind.ONE_TO_MANY, core_1.ReferenceKind.MANY_TO_MANY].includes(join.prop.kind);
|