@mikro-orm/core 6.6.4-dev.0 → 6.6.4-dev.1
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.
|
@@ -289,26 +289,26 @@ class DatabaseDriver {
|
|
|
289
289
|
if (!sub.embeddedProps[kkk]) {
|
|
290
290
|
throw errors_1.ValidationError.invalidEmbeddableQuery(meta.className, kkk, sub.type);
|
|
291
291
|
}
|
|
292
|
-
inline(payload[sub.embedded[1]], sub.embeddedProps[kkk], [...path, sub.
|
|
292
|
+
inline(payload[sub.embedded[1]], sub.embeddedProps[kkk], [...path, sub.fieldNames[0]]);
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
|
-
data[`${path.join('.')}.${sub.
|
|
295
|
+
data[`${path.join('.')}.${sub.fieldNames[0]}`] = payload[sub.embedded[1]];
|
|
296
296
|
};
|
|
297
297
|
const parentPropName = kk.substring(0, kk.indexOf('.'));
|
|
298
298
|
// we might be using some native JSON operator, e.g. with mongodb's `$geoWithin` or `$exists`
|
|
299
299
|
if (props[kk]) {
|
|
300
300
|
/* istanbul ignore next */
|
|
301
|
-
inline(data[prop.name], props[kk] || props[parentPropName], [prop.
|
|
301
|
+
inline(data[prop.name], props[kk] || props[parentPropName], [prop.fieldNames[0]]);
|
|
302
302
|
}
|
|
303
303
|
else if (props[parentPropName]) {
|
|
304
|
-
data[`${prop.
|
|
304
|
+
data[`${prop.fieldNames[0]}.${kk}`] = data[prop.name][kk];
|
|
305
305
|
}
|
|
306
306
|
else {
|
|
307
307
|
unknownProp = true;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
else if (props[kk]) {
|
|
311
|
-
data[props[kk].
|
|
311
|
+
data[props[kk].fieldNames[0]] = data[prop.name][props[kk].embedded[1]];
|
|
312
312
|
}
|
|
313
313
|
else {
|
|
314
314
|
throw errors_1.ValidationError.invalidEmbeddableQuery(meta.className, kk, prop.type);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "6.6.4-dev.
|
|
3
|
+
"version": "6.6.4-dev.1",
|
|
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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"esprima": "4.0.1",
|
|
65
65
|
"fs-extra": "11.3.3",
|
|
66
66
|
"globby": "11.1.0",
|
|
67
|
-
"mikro-orm": "6.6.4-dev.
|
|
67
|
+
"mikro-orm": "6.6.4-dev.1",
|
|
68
68
|
"reflect-metadata": "0.2.2"
|
|
69
69
|
}
|
|
70
70
|
}
|