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

157
Vistas
Firebase get doc ID that is nested several branches up

I am trying to search for all documents that contain a field, this field is contained in many documents. It's a UID for users. I am trying to find all documents which contain a certain UID. Given the following struct:

projects > aa (or bb or cc etc many here) > projectTickets > someDocID (which contains the field).

So, I am trying to get the name of the first doc (aa for example). I am not sure how.So, I want to find all documents whose field value match the UID, and go up like 2 branches, and collect that name. Is this possible?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

It's hard to follow what you're trying to do. But I can tell you that Firestore can only query a single collection at a time using specific named fields as a filter, or collection group queries against all collections with the same name. If you need to find data from multiple collections, you will need to perform multiple queries on those collections.

It's not possible to query "all" documents in all collections, and it's not possible to query data in collections where you don't know the name of the field to filter on.

about 4 years ago · Juan Pablo Isaza Denunciar
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