P
Prisma•5mo ago
yug

prismaclientvalidationerror

No description
No description
No description
No description
5 Replies
RaphaelEtim
RaphaelEtim•5mo ago
Hi @yug 👋 In your user model, you do not have address as a field in it. addreess field is defined in restaurant model.
yug
yugOP•5mo ago
I want to access the restaurant model not user model
Yetzederixx
Yetzederixx•5mo ago
Use Snipping Tool to capture screenshots - Microsoft Support
Learn how to use Snipping Tool to capture a screenshot, or snip, of any object on your screen, and then annotate, save, or share the image.
Yetzederixx
Yetzederixx•5mo ago
That said, you are trying to add an address to a user which does not have an address field, you cannot add a field (and prisma will not ignore it) that doesn't exist in the models schema
jonfanz
jonfanz•5mo ago
If you want to create a restaurant then you should use prisma.restaurant.create instead of prisma.user.create
Want results from more Discord servers?
Add your server