@mikro-orm/knex 6.5.7-dev.10 → 6.5.7-dev.11

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.5.7-dev.10",
3
+ "version": "6.5.7-dev.11",
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.5.6"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.5.7-dev.10",
69
+ "@mikro-orm/core": "6.5.7-dev.11",
70
70
  "better-sqlite3": "*",
71
71
  "libsql": "*",
72
72
  "mariadb": "*"
@@ -281,6 +281,10 @@ class QueryBuilderHelper {
281
281
  }
282
282
  const [fromAlias, fromField] = this.splitField(key);
283
283
  const prop = this.getProperty(fromField, fromAlias);
284
+ if (core_1.Utils.isPlainObject(value) && prop?.kind === core_1.ReferenceKind.EMBEDDED) {
285
+ const parts = Object.entries(value).map(([k, v]) => this.processJoinClause(`${alias}.${prop.embeddedProps[k].name}`, v, alias, params));
286
+ return this.wrapQueryGroup(parts);
287
+ }
284
288
  operator = operator === '$not' ? '$eq' : operator;
285
289
  const column = this.mapper(key, undefined, undefined, null);
286
290
  if (value === null) {