How can I achieve the following using RXJS? I have 3 requests each dependant on the previous, and I need all responses in the subscription.
this.httpService.request1(paramsObj).pipe(
switchMap((response)=>{
return this.httpService.request2({...response})
}),
switchMap((response)=>{
return this.httpService.request3({...response})
})
).subscribe(([response1, response2, response3]) => {
// somehow access all responses here while each response is dependeant on the previous one
})