@mikro-orm/mongodb 6.6.1-dev.3 → 6.6.1-dev.5
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/MongoSchemaGenerator.js +1 -1
- package/package.json +2 -2
package/MongoSchemaGenerator.js
CHANGED
|
@@ -118,7 +118,7 @@ class MongoSchemaGenerator extends core_1.AbstractSchemaGenerator {
|
|
|
118
118
|
}
|
|
119
119
|
mapIndexProperties(index, meta) {
|
|
120
120
|
return core_1.Utils.flatten(core_1.Utils.asArray(index.properties).map(propName => {
|
|
121
|
-
const rootPropName = propName.
|
|
121
|
+
const rootPropName = propName.split('.')[0];
|
|
122
122
|
const prop = meta.properties[rootPropName];
|
|
123
123
|
if (propName.includes('.')) {
|
|
124
124
|
return [prop.fieldNames[0] + propName.substring(propName.indexOf('.'))];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/mongodb",
|
|
3
|
-
"version": "6.6.1-dev.
|
|
3
|
+
"version": "6.6.1-dev.5",
|
|
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",
|
|
@@ -65,6 +65,6 @@
|
|
|
65
65
|
"@mikro-orm/core": "^6.6.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@mikro-orm/core": "6.6.1-dev.
|
|
68
|
+
"@mikro-orm/core": "6.6.1-dev.5"
|
|
69
69
|
}
|
|
70
70
|
}
|