Skip to main content

replies_for_threads

Function replies_for_threads 

Source
pub async fn replies_for_threads(
    pool: &Pool,
    thread_ids: &[i64],
) -> Result<HashMap<i64, Vec<CommentReply>>, ExecError>
Expand description

Fetch every reply for a list of thread ids in one query, then bucket per thread. Returns comment_id → Vec<replies>.

§Errors

Driver / query failures.