We have five different tables, but the user exists only in one of them, we don't know which one it is, which operator is best to use to query all of them at the same time? I'm using
forkJoin([getUserTable1$, getUserTable2$, ..]).subscribe((res) => console.log(res))
But four of them throw error and the resulting forkJoin result is also in error Which rxjs operator is best to use in this case? I've tried to pipe each observable with error handling but doesn't work
getUserTable1$.pipe(catchError(() => { return EMPTY; })) etc
Of course i can query each table separately but I want to use only one subscription
The problem is in returning
EMPTYAs the docs say, the resulting stream is:
Mind these words: of last values emitted ->
EMPTYdoes not emit anything.The below code works for me on stackblitz: