I want to utilize the pipe
command and link from one observable, process the output data in the subscription, then run a function to transform the data and then input the result to a new observable function. I was trying to link the function with the pipe and switchMap
but I am not sure how to elevate and be able to plug the transform function between the 2 observables
service.FirstFunction().pipe(
switchMap((info) => this.Transform(info),switchMap((data) => service.secondFunction(data))
)
.subscription((x)=> this.Updatedata(x));
this.transform
is a regular function and not an observable
thanks
Wally