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

360
Visualizações
How to put limit on firebase listCollections()
const data: any = await db.listCollections();

I need to get only limited number of collections, you can say pagination. But I didn't find any firebase query with limit on getting collections . Because the db is design like this way that you have to get all the collections, and there is too many collections.

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

0

When using Firestore you should typically give your collections known names, so that you can repeat them in the client-side code, and generate the names for the documents.

The Firestore API isn't well suited for listing or querying collections.

I recommend pivoting, and storing the information that requires listing into documents, so that you can use the query and pagination APIs on documents.

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