Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

359
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!