P V
12/13/2021, 2:02 PMΓιώργος Κραχτόπουλος
12/13/2021, 2:08 PM.toString() function and then .includes() . For example:
537.toString().includes("37")P V
12/13/2021, 2:14 PMconst ncms = await prisma.ncms.findMany({
select: {
id: true,
number: true,
description: true
},
where: {
OR: [
{
number: { equals: parseInt(text) }
},
{
description: { contains: text }
}
]
}
})P V
12/13/2021, 2:16 PMΓιώργος Κραχτόπουλος
12/13/2021, 2:28 PMnotIn operator, that may be usefulP V
12/13/2021, 4:12 PM