Hello I want that when creating a new document, where it says "projectId" the id of the document that is automatically generated is passed to the "projectId" field, is this is possible?
This is my code:
addDoc(collection(db, "projects"), {
name: project,
uid: currentUser,
projectId: 'here the proyectId that i dont know how to pass it'
})
Im using Firebase v9 Modular, Firestore and React JS
