#prismaclientvalidationerror

6 messages · Page 1 of 1 (latest)

white schooner
tawny flowerBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

shrewd geyser
#

Hi @white schooner 👋

In your user model, you do not have address as a field in it. addreess field is defined in restaurant model.

white schooner
#

I want to access the restaurant model not user model

lapis kelp
#

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