Upsert by Reference ID
Hello, I'm trying to upsert data by reference ID but Prisma reject this action
Execution Code
Error
Schema
5 Replies
Prisma needs to uniquely identify the record that needs to be created or updated, which is why the field that you pass in the
where
clause needs to be uniquely identifiable.
In your case just filtering by loan_id would not ensure that only a unique record would be obtained.@Nurul (Prisma) So basically the issue is, that
loan_id
is not unique. Do I understand correctly?Exactly! That's the issue.
Thx!
No worries! 😄