7 Replies
In this sql example, is there an index on
employee_id
?yes
will be querying _id
If so, the equivalent in convex would be
await Promise.all(ids.map((id)=>ctx.db.get(id)))
thank you @lee
fyi, had to coach it a bit on style, but the docs ai chat converted this sql into a complete convex query really well
ai chat in convex website?
Yep, kapa may work just as well too
Could be handy if you already think in sql