@clairejs/server 3.28.14 → 3.28.15

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/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Change Log
2
2
 
3
+ #### 3.28.15
4
+
5
+ - fix uri mapper for expanded & has many fields
6
+
3
7
  #### 3.28.14
4
8
 
5
9
  - implement @Expand and paralel run in getMany
@@ -202,7 +202,8 @@ export class ModelRepository extends AbstractRepository {
202
202
  const value = record[field.name];
203
203
  if (!value)
204
204
  continue;
205
- if (field.elementDto && value) {
205
+ //-- expand and hasMany fields are already mapped using the repo get many
206
+ if (field.elementDto && value && !field.expand && !field.hasMany) {
206
207
  mapRecords(field.vectorProps ? value : [value], field.elementDto);
207
208
  }
208
209
  else if (field.uriMapper) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/server",
3
- "version": "3.28.14",
3
+ "version": "3.28.15",
4
4
  "description": "Claire server NodeJs framework written in Typescript.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",