Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

374
Views
Angular Fire - Firebase Realtime DB : Joining two collections

I am having a simple data structure

Dashboard: enter image description here

User Collection: enter image description here

I am reading the dashboard collection and for each UID , I want to query the user table and get the user details.

I tried several option , none worked. But the follow method gave the nearest Results. however the suer information is not coming.

 public getDashboard(practiceID)
  {
    const path = 'dashboard/'+practiceID;
    return this.db.list(path).snapshotChanges().pipe(map(rag=>{
        return rag.map(a=>{
            
            const payload:IRAG = a.payload.val();
            const uid = a.key;
            const upath = 'users/'+uid;
            payload.user = this.db.list(upath).valueChanges()
                                              .pipe(map(u=> {  return u}));
            return payload;
        })}))
     
  }

Any help would be deeply appreciated

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!