5 Replies
Hi @yug 👋
In your
user
model, you do not have address
as a field in it. addreess
field is defined in restaurant
model.I want to access the restaurant model not user model
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.
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
If you want to create a restaurant then you should use
prisma.restaurant.create
instead of prisma.user.create