How to use a variable such as users UID as the key to a map in Firestore.
I would imagine its the same principal as out of Firestore
const userID = "gfsueudiyeueuuuke7ue"
setDoc(docRef, {
userID : {
age: 11,
name: "test"
...
}
})
Ive tried (userID): ...
as well as ${userID}
:
any suggestions?