Dhananjay Takalkar
03/23/2022, 10:55 AMNurul
03/23/2022, 1:37 PMwhen
clauses yet.
You would need to create a where clause before passing it in query.
Something like this
if(title) {
where = {
title: { contains: 'prisma' }
}
}
if(description) {
where ={
description: { contains: 'prisma' }
}
}
const result = await prisma.post.findMany(where)
If that's what you need, can you open a Feature Request explaining your use case?Dhananjay Takalkar
03/23/2022, 1:40 PM