await db.query.productTable.findMany({
where: (fields, o) =>
o.inArray(
fields.id,
featuredIds.map((ele) => +ele),
),
with: publicViewProductsWith,
orderBy: (fields, { desc }) => desc(fields.latestInventoryUpdateAt),
limit: 30,
});
await db.query.productTable.findMany({
where: (fields, o) =>
o.inArray(
fields.id,
featuredIds.map((ele) => +ele),
),
with: publicViewProductsWith,
orderBy: (fields, { desc }) => desc(fields.latestInventoryUpdateAt),
limit: 30,
});