So i merge various Observables into one with mergemap, then i subscribe to said merged Observable and i get various responses. But they are anonymous; the response only says "SUCCESS" but i want to know the id that made that response
const requests = from(
this.array.map((e)=>{
return this.eventsService.acceptId(e.id);
})
).pipe(mergeMap( x => x ));
requests.subscribe(
(res)=>{
console.log(res)
}
)
this works as intended but i want to know the id that caused the response inside the subscribe.
the calls need to be parallel, with individual API calls