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
Ryan
07/07/2021, 5:10 AM
@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.