Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

153
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda