rx.js – chain requests

I don’t need result from first request, but need their response for second request (`switchMap` will be working, too)

import { mergeMap } from 'rxjs/operators';
 
this.http.get('/request1').pipe(
  mergeMap((resp1:any) => 
    this.http.post('/request2', resp1)
  )
).subscribe(res => {
   // I have result from second request only
   console.log(res);
});