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

413
Visualizações
Firestore - get collection Entries from document in collection

I would like to get the value which is red marked in the Screenshot below.

I tried a lot things also with google, but I do not came to a good result.

My code so far:

firestore.collection('chats').doc(this.uid).get().subscribe(data => {
      alert(data.data());
    });

Screenshot

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If what you circled in red is a collection, you will have to know the collection name, as you can't [get "all subcollections" of a document(https://stackoverflow.com/questions/48258632/fetching-all-collections-in-firestore/48258777#48258777) in the client-side SDKs.

So you'll need to know the name of the collection already. Once you do, accessing it is:

firestore
  .collection('chats')
  .doc(this.uid)
  .collection("the subcollection name")
  .get()
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