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

385
Views
Cómo obtener la identificación de referencia de esta subcolección en firestore

Estoy tratando de obtener la identificación de referencia de esta subcolección

Sin embargo, estoy siguiendo este tutorial: [2]: https://www.pluralsight.com/guides/consume-data-from-firebase-firestore-in-a-react-app

Quiero obtener el hBYWvZ3KN3NLLrucTpryeTQZnHz2 de Firestore:

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

Por favor, ¿cómo puedo obtener esa identificación?

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

0

El código que tiene actualmente crea una referencia a la colección.

Los datos no se cargarán desde esa referencia hasta que llames a get() o onSnapshot , así que:

 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!