For example, there is /api/item/1 , which returns {id: 1, data: "data1"} and /api/item/2 , which returns {id: 2, data: "data2"} , and so on. I want to array all the objects so that I get [{id: 1, data: "data1"}, {id: 2, data: "data2"}] . I tried to do by example:
Observable.from(ids) .mergeMap(res => this.getItemById(res)) //метод возвращающий Observable .concatAll() Did not work, tell me how to do it?
idswhat is yours? - n3r0bi0m4n