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 d61b227 commit 5157f44Copy full SHA for 5157f44
packages/server/src/api/rest/index.ts
@@ -970,6 +970,10 @@ class RequestHandler extends APIHandlerBase {
970
}
971
972
973
+ // include IDs of relation fields so that they can be serialized.
974
+ // This ensures valid relationships are included in the result payload.
975
+ this.includeRelationshipIds(type, updatePayload, 'include');
976
+
977
const entity = await prisma[type].update(updatePayload);
978
return {
979
status: 200,
0 commit comments