@mikro-orm/knex 6.0.0-dev.16 → 6.0.0-dev.18
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/AbstractSqlDriver.js +4 -1
- package/package.json +3 -3
package/AbstractSqlDriver.js
CHANGED
|
@@ -553,12 +553,15 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
|
|
|
553
553
|
getFieldsForJoinedLoad(qb, meta, explicitFields, populate = [], parentTableAlias, parentJoinPath) {
|
|
554
554
|
const fields = [];
|
|
555
555
|
const joinedProps = this.joinedProps(meta, populate);
|
|
556
|
+
if (explicitFields?.includes('*')) {
|
|
557
|
+
fields.push('*');
|
|
558
|
+
}
|
|
556
559
|
const shouldHaveColumn = (prop, populate, fields) => {
|
|
557
560
|
if (!this.platform.shouldHaveColumn(prop, populate)) {
|
|
558
561
|
return false;
|
|
559
562
|
}
|
|
560
563
|
if (!fields || prop.primary) {
|
|
561
|
-
return
|
|
564
|
+
return !fields?.includes('*');
|
|
562
565
|
}
|
|
563
566
|
return fields.includes(prop.name);
|
|
564
567
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "6.0.0-dev.
|
|
3
|
+
"version": "6.0.0-dev.18",
|
|
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",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"sqlstring": "2.3.3"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@mikro-orm/core": "^5.6.
|
|
66
|
+
"@mikro-orm/core": "^5.6.2"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "~6.0.0-dev.
|
|
69
|
+
"@mikro-orm/core": "~6.0.0-dev.18"
|
|
70
70
|
}
|
|
71
71
|
}
|