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 } }],
        },


This narrows with 2 filters, but if one keyword is not present, it shows 0 results, thanks!!
image.png
Was this page helpful?