Answers for "update data firestore"

4

firestore set a document

let data = {
  name: 'Los Angeles',
  state: 'CA',
  country: 'USA'
};

// Add a new document in collection "cities" with ID 'LA'
let setDoc = db.collection('cities').doc('LA').set(data);
Posted by: Guest on June-05-2020
1

update data firestore

db.collection("cities").doc("DC").update({
    capital: true
})
Posted by: Guest on August-28-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language