DEV Community 👩‍💻👨‍💻

ADEKOLA Abdwahab
ADEKOLA Abdwahab

Posted on

Foreign key constraint failed on the field (prisma )

This error comes up due to the fact that you have a foreign key requirement on your DB.

So you need to check what you inserting into the DB and ensure that your insertion(s) meets up with the foreign key requirement.

Top comments (1)

freedisch profile image

I got the same issue, and spent hours fixing it thanks

Every Week

We have a Welcome Thread where we invite members to tell us a bit about themselves. Join the conversation with us!