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

176
Views
¿Cómo crear y enviar un objeto a la matriz de base de fuego?

Mi lógica actual es la siguiente: crear un documento con una identificación de usuario en la colección de usuarios y enviar el primer objeto, luego, en la segunda llamada, quiero poder actualizar la matriz de eliminación con un nuevo objeto.

 const docRef = doc(db, 'user', _authContext.currentUser.uid); const payload = { items: [{item1 : 1}] }; await setDoc(docRef, payload); // New array after update (second call of the function) items: [{item1 : 1}, {item2 : 2}]
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Creo que estás buscando:

 await updateDoc(docRef, { items: arrayUnion({ item2: 2 }) });

Consulte también la documentación de Firebase sobre cómo agregar elementos a una matriz .

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!