@twin.org/entity-storage-connector-mongodb 0.0.1-next.23 → 0.0.1-next.25

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.
@@ -152,6 +152,7 @@ class MongoDbEntityStorageConnector {
152
152
  */
153
153
  async set(entity$1, conditions) {
154
154
  core.Guards.object(this.CLASS_NAME, "entity", entity$1);
155
+ entity.EntitySchemaHelper.validateEntity(entity$1, this.getSchema());
155
156
  const primaryKey = entity.EntitySchemaHelper.getPrimaryKey(this.getSchema());
156
157
  const id = entity$1[primaryKey.property];
157
158
  try {
@@ -150,6 +150,7 @@ class MongoDbEntityStorageConnector {
150
150
  */
151
151
  async set(entity, conditions) {
152
152
  Guards.object(this.CLASS_NAME, "entity", entity);
153
+ EntitySchemaHelper.validateEntity(entity, this.getSchema());
153
154
  const primaryKey = EntitySchemaHelper.getPrimaryKey(this.getSchema());
154
155
  const id = entity[primaryKey.property];
155
156
  try {
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/entity-storage-connector-mongodb - Changelog
2
2
 
3
- ## v0.0.1-next.23
3
+ ## v0.0.1-next.25
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/entity-storage-connector-mongodb",
3
- "version": "0.0.1-next.23",
3
+ "version": "0.0.1-next.25",
4
4
  "description": "Entity Storage connector implementation using MongoDb storage",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@twin.org/core": "next",
18
18
  "@twin.org/entity": "next",
19
- "@twin.org/entity-storage-models": "0.0.1-next.23",
19
+ "@twin.org/entity-storage-models": "0.0.1-next.25",
20
20
  "@twin.org/logging-models": "next",
21
21
  "@twin.org/nameof": "next",
22
22
  "mongodb": "^6.14.2"