I have an authentication table and users table wit...
# orm-help
h
I have an authentication table and users table with one-one relationship and i did with findMany and is but i found some strange because i need to be unique in my database and with findUnique doesnt work with is
a
I think you'd want to tweak your where query
Copy code
where: {
  authentication: {
    where: {
      password
    }
  }
}
for example
Also, assuming this is just an example but don't save password in plain text!
☝️ 1
h
the where inside another where here didnt work
he advices to use is
a
had the wrong syntax it'd be more like
Copy code
where: {
  authentication: { password }
 }