Is it possible to apply map, switchMap, or any other operator in conjunction with a function that outputs an observable? The objective here is to transform the result of the observable function and utilize that value during the subscription to another observable.
fetchBackendInformation(input1, input2): Observable {
return this.service.retrieveData(input1, input2)
}
this.additionalService.dataStream$.pipe(
map(data => fetchBackendInformation(data.parameter1, data.parameter2))
).subscribe(responseFromServer => {
console.log("Received response:", responseFromServer)
})