P
Prisma8mo ago
K1|ller

Filter: return both or one

I have the case where I want to narrow the search with 2 keywords, 2 keywords work, but 1 alone is not working. I have tried:

where: {
AND: [{ type: { in: input } }, { priceType: { in: input } }],
OR: [{ type: { in: input } }, { priceType: { in: input } }],
},

where: {
AND: [{ type: { in: input } }, { priceType: { in: input } }],
OR: [{ type: { in: input } }, { priceType: { in: input } }],
},
This narrows with 2 filters, but if one keyword is not present, it shows 0 results, thanks!!
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server