We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c34a23 commit b1ef3c0Copy full SHA for b1ef3c0
libs/json-api-nestjs/src/lib/mixin/service/transform/transform.mixin.ts
@@ -273,7 +273,8 @@ export class TransformMixinService<T> {
273
: [itemRow[field]];
274
275
for (const includeItem of includeArray) {
276
- const { id } = includeItem;
+ const idName = this.relationPrimaryField.get(field)
277
+ const id = includeItem[idName];
278
if (result[field][id]) {
279
continue;
280
}
0 commit comments