You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks a lot for opening this issue! This is indeed a misunderstanding:
you are referring the query called upsert which indeed requires a where clause to identify the record that potentially gets updated
however, this page is about the option called upsert inside the query called update and hence doesn't require a where clause (because the record to be updated is identified through the 1-n-relation)
You can test this by setting up a simple Prisma ORM project and this schema:
Sorry if I'm just misunderstanding this, but in https://www.prisma.io/docs/orm/prisma-client/queries/relation-queries#update-or-create-a-related-record, it looks like the
upsert
object has the requiredcreate
andupdate
fields, but it's missing the requiredwhere
field.The text was updated successfully, but these errors were encountered: