Is it possible to use .map and batch?

const prepared = [1, 2, 3].map((id) => db.select().from(Users));

const batchDynamic = await db.batch(prepared); // TS Errors ❌
const batchStatic = await db.batch([db.select().from(Users)]); // Works ✅
Was this page helpful?