@mikro-orm/mongodb 6.6.1-dev.2 → 6.6.1-dev.4
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/README.md +2 -0
- 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/README.md
CHANGED
|
@@ -383,6 +383,8 @@ See also the list of contributors who [participated](https://github.com/mikro-or
|
|
|
383
383
|
|
|
384
384
|
Please ⭐️ this repository if this project helped you!
|
|
385
385
|
|
|
386
|
+
> If you'd like to support my open-source work, consider sponsoring me directly at [github.com/sponsors/b4nan](https://github.com/sponsors/b4nan).
|
|
387
|
+
|
|
386
388
|
## 📝 License
|
|
387
389
|
|
|
388
390
|
Copyright © 2018 [Martin Adámek](https://github.com/b4nan).
|
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.4",
|
|
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.4"
|
|
69
69
|
}
|
|
70
70
|
}
|