Answers for "firestore get id of new document"

1

firestore get id of new document

async function addCity(newCity) {
  const { id } = await db.collection("cities").add(newCity)
  console.log("the new city's id:", id)
}
Posted by: Guest on November-30-2020
0

get document id from firestore

##get document id from firestore
https://stackoverflow.com/questions/53605611/firestore-flutter-how-can-i-get-document-id
Posted by: Guest on October-04-2021

Code answers related to "firestore get id of new document"

Browse Popular Code Answers by Language