Answers for "get id after set in realtime firebase"

1

get id after set in realtime firebase

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

Code answers related to "get id after set in realtime firebase"

Browse Popular Code Answers by Language