Closed CollinKempkes closed 5 months ago
Thanks @CollinKempkes . I'm able to reproduce it. Will make a fix soon.
Hi @CollinKempkes , could you check if the new 1.12.4 release resolves the issue for you?
Hi @ymc9 , following up as Collin is afk for the next weeks.
This did fix the issue, thank you for the release :rainbow:
Thank you for the confirmation!
Description and expected behavior The problem is that zenstack is having some kind of problem of upserting relations when the where part of the upsert is using a compound/ unique key. With an unenhanced client it works as expected. Also when using the normal PrimaryKey it also work as expected, just in this scenario using unique keys is broken.
To recreate this behaviour use this code:
The responding error message is:
Debug log also says:
Environment: