Jvwer
PPrisma
•Created by Jvwer on 11/19/2024 in #help-and-questions
FindUnique/Update using unique index on sub field
Hi Raphael,
Thanks for your fast reply.
I've tinkered with this some more and found out it actually can be done. However the subfield should have a name that is not inside the model.
so:
Now I can use it as
This is similar to how compound indexes work. Those have the same syntax: fieldName1_fieldName2.
Because comment and reply both had
id
as a field, this wasn't possible.
This was a little bit confusing 😅 but I got it working.
Thanks!4 replies