How To Do Recursive Observable Call in RxJava?
I am quite new to RxJava (and Reactive paradigm in general), so please bear with me. Suppose I have this News and this nested Comment data structure: public class News { public int id; public int[] commentIds; //only top level comments public News(int id, int[] commentIds) { this.id = id; this.commentIds = commentIds; } } public class Comment { public int id; public int parentId; //ID of parent News or parent comment public int[] childIds; public Comment(int id, int parentId, int[] childIds) { this.id = id; this.parentId = parentId; this.childIds = childIds; } } and suppose I have this API