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

382
Views
How to get this subcollection's ref id in firestore

I am trying to get this subcollection's ref id

I am following this tutorial however : [2]: https://www.pluralsight.com/guides/consume-data-from-firebase-firestore-in-a-react-app

I want to get the hBYWvZ3KN3NLLrucTpryeTQZnHz2 from the firestore :

 const HighlightDbId =  await db.collection('highlights')
  .doc('2SCS2S0JnzngWEiYkHNk')
  .collection('hBYWvZ3KN3NLLrucTpryeTQZnHz2')

Please how can I possible get that id ??

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The code you currently have creates a reference to the collection.

Data won't be loaded from that reference until you call get() or onSnapshot on it, so:

 const HighlightDbId =  await db.collection('highlights')
  .doc('2SCS2S0JnzngWEiYkHNk')
  .collection('hBYWvZ3KN3NLLrucTpryeTQZnHz2')
  .get()
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!