Web Dev CodyW
Convex Community3y ago
4 replies
Web Dev Cody

doing table joins

is there a best practice way to do joins? I kindof wish I could do this:

return participants
    .filter((submission) => !!submission.videoUrl)
    .map((submission) => ({
      ...submission,
      votedBy: submission.voteIds.map(
        async (votedByUserId) => (await ctx.db.get(votedByUserId))?.name
      ),
    }));


but that fails when I run it
Was this page helpful?