Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reactjs get one document from firestore

firebase.firestore().collection("polja").doc(documentId).get().then((snapshot) => {
  console.log(snapshot.data())
}).catch((e) => console.log(e))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reactjs #document #firestore
ADD COMMENT
Topic
Name
4+7 =