this post was submitted on 24 Jun 2023
6 points (100.0% liked)

Lemmy App Development

728 readers
1 users here now

A place for Lemmy builders to chat about building apps, clients, tools and bots for the Lemmy platform.

On-Topic:

Off-Topic:

founded 2 years ago
MODERATORS
 

i have requests to fetch comment and post data, but i'm struggling to work out how to build a tree from the responses? do i fetch comments with arg parent_id to get a comment's children, and do so recursively for those comments returned that themselves have comments?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 2 years ago (1 children)

Yes, I still end up with orphaned comments that have no parent in the results regardless of the sort method

[โ€“] [email protected] 1 points 2 years ago

Can you share the reproducible requests/URLs?