@mikro-orm/knex 6.1.6 → 6.1.7-dev.0
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.1.
|
|
3
|
+
"version": "6.1.7-dev.0",
|
|
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.1.6"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "
|
|
69
|
+
"@mikro-orm/core": "6.1.7-dev.0"
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -27,10 +27,10 @@ class ObjectCriteriaNode extends CriteriaNode_1.CriteriaNode {
|
|
|
27
27
|
throw new Error('Mixing collection operators with other filters is not allowed.');
|
|
28
28
|
}
|
|
29
29
|
const payload = this.payload[key].unwrap();
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const qb2 = qb.clone(true);
|
|
31
|
+
const sub = qb2
|
|
32
32
|
.from(this.parent.entityName)
|
|
33
|
-
.innerJoin(this.key,
|
|
33
|
+
.innerJoin(this.key, qb2.getNextAlias(this.prop.type))
|
|
34
34
|
.select(this.prop.targetMeta.primaryKeys);
|
|
35
35
|
if (key === '$every') {
|
|
36
36
|
sub.where({ $not: { [this.key]: payload } });
|
package/query/QueryBuilder.js
CHANGED
|
@@ -747,7 +747,7 @@ class QueryBuilder {
|
|
|
747
747
|
const properties = [
|
|
748
748
|
'flags', '_populate', '_populateWhere', '__populateWhere', '_populateMap', '_joins', '_joinedProps', '_cond', '_data', '_orderBy',
|
|
749
749
|
'_schema', '_indexHint', '_cache', 'subQueries', 'lockMode', 'lockTables', '_groupBy', '_having', '_returning',
|
|
750
|
-
'_comments', '_hintComments', 'rawFragments',
|
|
750
|
+
'_comments', '_hintComments', 'rawFragments', 'aliasCounter',
|
|
751
751
|
];
|
|
752
752
|
core_1.RawQueryFragment.cloneRegistry = this.rawFragments;
|
|
753
753
|
for (const prop of Object.keys(this)) {
|