I have an `user` model where `user.name` and `user...
# orm-help
f
I have an
user
model where
user.name
and
user.email
are both unique (
@@unique([name, email])
) and when I want to upsert with these two properties I got the following error:
Type '{ name: string; email: string; }' is not assignable to type 'UsersWhereUniqueInput'.
d
You're missing one level of nesting. Try
name_email: { name: ... email: ... }
f
thank you, it worked