Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

376
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda