@mikro-orm/knex 6.2.1-dev.4 → 6.2.1-dev.6
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "6.2.1-dev.
|
|
3
|
+
"version": "6.2.1-dev.6",
|
|
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,6 +66,6 @@
|
|
|
66
66
|
"@mikro-orm/core": "^6.2.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "6.2.1-dev.
|
|
69
|
+
"@mikro-orm/core": "6.2.1-dev.6"
|
|
70
70
|
}
|
|
71
71
|
}
|
package/query/QueryBuilder.js
CHANGED
|
@@ -232,7 +232,9 @@ class QueryBuilder {
|
|
|
232
232
|
populate.push(...children);
|
|
233
233
|
}
|
|
234
234
|
prop.targetMeta.props
|
|
235
|
-
.filter(prop => explicitFields
|
|
235
|
+
.filter(prop => explicitFields
|
|
236
|
+
? explicitFields.includes(prop.name) || explicitFields.includes(`${alias}.${prop.name}`) || prop.primary
|
|
237
|
+
: this.platform.shouldHaveColumn(prop, populate))
|
|
236
238
|
.forEach(prop => fields.push(...this.driver.mapPropToFieldNames(this, prop, alias)));
|
|
237
239
|
return fields;
|
|
238
240
|
}
|
|
@@ -189,7 +189,7 @@ class QueryBuilderHelper {
|
|
|
189
189
|
if (schema) {
|
|
190
190
|
table = `${schema}.${table}`;
|
|
191
191
|
}
|
|
192
|
-
if (
|
|
192
|
+
if (join.prop.name !== '__subquery__') {
|
|
193
193
|
join.primaryKeys.forEach((primaryKey, idx) => {
|
|
194
194
|
const right = `${join.alias}.${join.joinColumns[idx]}`;
|
|
195
195
|
if (join.prop.formula) {
|