@mikro-orm/knex 6.3.11-dev.5 → 6.3.11-dev.7
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 +2 -5
- package/package.json +2 -2
package/AbstractSqlDriver.js
CHANGED
|
@@ -912,15 +912,12 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
|
|
|
912
912
|
getFieldsForJoinedLoad(qb, meta, explicitFields, exclude, populate = [], options, parentTableAlias, parentJoinPath) {
|
|
913
913
|
const fields = [];
|
|
914
914
|
const joinedProps = this.joinedProps(meta, populate, options);
|
|
915
|
-
if (explicitFields?.includes('*')) {
|
|
916
|
-
fields.push('*');
|
|
917
|
-
}
|
|
918
915
|
const shouldHaveColumn = (prop, populate, fields) => {
|
|
919
916
|
if (!this.platform.shouldHaveColumn(prop, populate, exclude)) {
|
|
920
917
|
return false;
|
|
921
918
|
}
|
|
922
|
-
if (!fields || prop.primary) {
|
|
923
|
-
return
|
|
919
|
+
if (!fields || fields.includes('*') || prop.primary) {
|
|
920
|
+
return true;
|
|
924
921
|
}
|
|
925
922
|
return fields.some(f => f === prop.name || f.toString().startsWith(prop.name + '.'));
|
|
926
923
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "6.3.11-dev.
|
|
3
|
+
"version": "6.3.11-dev.7",
|
|
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.3.10"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "6.3.11-dev.
|
|
69
|
+
"@mikro-orm/core": "6.3.11-dev.7",
|
|
70
70
|
"better-sqlite3": "*",
|
|
71
71
|
"libsql": "*",
|
|
72
72
|
"mariadb": "*"
|