skip to Main Content

Unable to add data in Firebase Firestore

code for uploading data in firestore Console: "Document written with ID: undefined" try { console.log const docRef = addDoc(collection(db, "users"), { name: "Alan", //middle: "Mathison", //last: "Turing", //born: 1912 }); console.log('yyyyy'); console.log("Document written with ID: ", docRef.id); } catch (e)…

VIEW QUESTION
Back To Top
Search