From 807e74155c81dd468b05420d854ad66b3ad88554 Mon Sep 17 00:00:00 2001 From: "Ben Scholzen (DASPRiD)" Date: Sun, 5 May 2024 18:58:35 +0200 Subject: [PATCH] fix(serializer): pass full field path down to single entity relationships --- src/serializer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serializer.ts b/src/serializer.ts index f18e75c..a39cd64 100644 --- a/src/serializer.ts +++ b/src/serializer.ts @@ -350,7 +350,7 @@ class IncludedCollection< } if (!Array.isArray(entityRelationship)) { - this.addSingle(entityRelationship, field, options); + this.addSingle(entityRelationship, fullFieldPath, options); continue; }