We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee6d037 commit 27e2d91Copy full SHA for 27e2d91
libs/json-api-nestjs/src/lib/mixin/service/transform/transform.mixin.ts
@@ -278,7 +278,11 @@ export class TransformMixinService<T> {
278
(acum, item) => {
279
const items = Object.values<T>(result[item]);
280
acum.push(
281
- ...(items.map((i) => this.transformData(i, [], item)) as any)
+ ...(items.map((i) => {
282
+ const dataForInclude = this.transformData(i, [], item);
283
+ dataForInclude.type = camelToKebab(i['constructor']['name']);
284
+ return dataForInclude;
285
+ }) as any)
286
);
287
return acum;
288
},
0 commit comments