@mikro-orm/knex 6.0.0-dev.256 → 6.0.0-dev.257
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 +2 -2
package/AbstractSqlDriver.js
CHANGED
|
@@ -754,11 +754,14 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
|
|
|
754
754
|
return populate.filter(hint => {
|
|
755
755
|
const [propName, ref] = hint.field.split(':', 2);
|
|
756
756
|
const prop = meta.properties[propName] || {};
|
|
757
|
+
if ((options?.strategy || hint.strategy || prop.strategy || this.config.get('loadStrategy')) !== core_1.LoadStrategy.JOINED) {
|
|
758
|
+
return false;
|
|
759
|
+
}
|
|
757
760
|
if (ref) {
|
|
758
761
|
// keep only pivot ref joins here, as that only triggers actual join
|
|
759
762
|
return prop.kind === core_1.ReferenceKind.MANY_TO_MANY;
|
|
760
763
|
}
|
|
761
|
-
return
|
|
764
|
+
return ![core_1.ReferenceKind.SCALAR, core_1.ReferenceKind.EMBEDDED].includes(prop.kind);
|
|
762
765
|
});
|
|
763
766
|
}
|
|
764
767
|
/**
|
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.257",
|
|
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": "^5.9.2"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "6.0.0-dev.
|
|
69
|
+
"@mikro-orm/core": "6.0.0-dev.257"
|
|
70
70
|
}
|
|
71
71
|
}
|