Query where clause with array.

How can I get something like this to work?

    const products = ["subscription", "insurance"]

    const productsToLink = await tx.query.products.findMany({
      where: (products, { eq }) => eq(products.name, products),
    });


I want the where clause to match any product that has a name thats inside the products array.
Was this page helpful?