Answers for "firestore set a document"

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

Code answers related to "firestore set a document"

Code answers related to "Javascript"

Browse Popular Code Answers by Language