@koalarx/nest 3.1.40 → 3.1.41

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.
@@ -264,6 +264,15 @@ class RepositoryBase {
264
264
  prismaSchema[key] = this.getConnectPrismaSchemaForRelation(entity[key]);
265
265
  }
266
266
  }
267
+ else if (entity[key] === null) {
268
+ const propDefinitions = auto_mapping_list_1.AutoMappingList.getPropDefinitions(entity.constructor, key);
269
+ const relationEntity = auto_mapping_list_1.AutoMappingList.getSourceByName(propDefinitions?.type ?? '');
270
+ if (relationEntity) {
271
+ prismaSchema[key] = {
272
+ disconnect: true,
273
+ };
274
+ }
275
+ }
267
276
  else if (!(entity[key] instanceof list_1.List)) {
268
277
  prismaSchema[key] = entity[key];
269
278
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koalarx/nest",
3
- "version": "3.1.40",
3
+ "version": "3.1.41",
4
4
  "description": "",
5
5
  "author": "Igor D. Rangel",
6
6
  "license": "MIT",