I have a 3 parallel firebase requires. And I need to join them as 1 single object. Code as below:
import {Http} from \"@angular/http\";
import {AngularFireD
Instead of .forkJoin(...)
you could use .combineLatest(...).
I also did streamline your map
a bit:
Observable.combineLatest(
this.db.list('participant/' + uid + '/threads'),
this.db.list('participant/' + uid + '/messages'),
this.db.list('participant/' + uid + '/participants')
)
.map(([threads, messages, participants]: [Thread[], Message[], Participant[]]) =>
({ threads, messages, participants })
)