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

109
Views
¿Cómo agregar una subcolección con documentos al documento principal en firestore usando react.js?

Solo quiero guardar mis datos en firestore. pero de acuerdo con la estructura de datos, tengo que crear una nueva colección en el documento. pero mis js no funcionan. ¿Podrías revisarlo? ¿Es posible?

 /* po : parent collection po-{}: parent document items: sub collection item-${} : sub document */ items.map(async(item) => { await setDoc(doc(firestore, "po", `po-${po_number}`,'items', `item-${item.item_id}` ), { id: item.item_id, quantity: item.quantity, received: item.received, rate: item.rate, amount: item.rate * item.quantity }); })
about 4 years ago · Juan Pablo Isaza
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!