I'm having a problem with this code. I'm trying to collect extra details from a secondary endpoint that relates to the id in the returned collection from the first get. Can someone help on how to get the actual data out as its returning an array of observables. Thank you
this.http.get(`${this.apiUrl}/cinemas/location/cardiff`).pipe(
map((data: any) => data.cinemas),
map((cinemalist) => {
return cinemalist.map(value => <Observable<any>>this.http.get(`https://api.cinelist.co.uk/get/cinema/${value.id}`));
})
).subscribe(results => {
console.log(results);
});