Levy Barbosa
02/03/2022, 9:46 PMnikolasburk
I also want rows with “0012345” when looking for “12345", is that possible?If the values are stored as
String
values, you should be able to use contains
or even endsWith
to make this happen. So something like:
await prisma.model.findMany({
where: {
fieldName: {
endsWith: "12345"
}
}
})
If you have more specific needs and actually need some filter conditions that can not be expressed via the Prisma Client API, you can add a 👍 and a comment to this feature request with your concrete use case to help our Product and Engineering teams prioritize this 🙂
Let me know if that helps 🙌