Hi guys, Is there a way in Prisma Client to refere...
# orm-help
l
Hi guys, Is there a way in Prisma Client to reference the value of a field when filtering?
Copy code
model Model {
  id String @id
  field1 String
  field2 String
}

await prisma.Model.find({ where: { field1: { equals: // value of field2 }} });
r
@Luc 👋 Currently not, but we do have a request for this here. It would be great if you could add a 👍 for this so that we can look at the priority for this.
l
thanks @Ryan
🙌 1