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

213
Views
Obtención de datos específicos de la matriz firebase

así que tengo esta colección:

Estoy tratando de obtener solo los ID de grupo en la matriz, hay como 3 de ellos, pero probé un bucle for en un bucle for pero sigue volviendo indefinido. ¿Dónde me estoy equivocando?

 fire.firestore().collection('userEvents2').doc(fire.auth().currentUser.uid).set({ groups: groupsList }) for (let i = 0; i < groupsList.length; i++) { const key = ""; for (key in groupsList[i]) { console.log(key.groupID) } }
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

¿Quizás el bucle está intentando ejecutarse antes de que se resuelva groupList?

ese es el codigo completo? ¿Está almacenando groupList en una variable como let groupList = groups.groupList; ?

about 4 years ago · Santiago Trujillo 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!