@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
|
@@ -202,7 +202,8 @@ export class ModelRepository extends AbstractRepository {
|
|
|
202
202
|
const value = record[field.name];
|
|
203
203
|
if (!value)
|
|
204
204
|
continue;
|
|
205
|
-
|
|
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) {
|