© 2026 Hedgehog Software, LLC
db.query.SisuBoard.findFirst({ with: { categories: { with: { entries: { with: { owner: true } } } } }, // eslint-disable-next-line @typescript-eslint/no-shadow where: (board, { eq, and, exists }) => and( eq(board.id, boardId), exists( db .select() .from(schema.SisuBoardMembers) .where( and( eq(schema.SisuBoard.id, schema.SisuBoardMembers.boardId), eq(schema.SisuBoardMembers.memberId, userId) ) ) ) ), })
invalid reference to FROM-clause entry for table "sisu_board"
exists