Replies: 1 comment
-
Hey, I work currently on pagination of comments. In my case I have one level of nesting and according to docs and this thread: #106 only flat GET endpoint allows both operations. At the first sight, it produces much overhead during processing of entities but nonetheless I've tried to achieve what I previously had using hierarchical GET endpoint. Sadly, I can't really think of a way to fetch needed comments, group comments and its thread and know the exact number of comments in a thread. With flat structure all comments are pretty standalone and some pieces of information, which could help in grouping, are missing. Have anyone tried something like this? |
Beta Was this translation helpful? Give feedback.
-
Hi, I struggle recently with pagination for my comments. To retrieve comments I use the base GET endpoint, which doesn't include pagination but I think the alternative - the
flat
endpoint - a little bit cumbersome as it requires more work to group all comments by thread and then to paginate every comments from that thread.At the first sight the current implementation can cause problems as comments are sorted by ID, so if I want to retrieve first 25 of them, I can't be sure that I get a comment and all its thread-comments.
Beta Was this translation helpful? Give feedback.
All reactions