Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. var docRef = db.collection("cities").doc("SF");
  2.  
  3. docRef.get().then(function(doc) {
  4. if (doc.exists) {
  5. console.log("Document data:", doc.data());
  6. // IS THERE A PROPERTY THAT CAN DISPLAY THE DOCUMENT FILE SIZE?
  7. } else {
  8. // doc.data() will be undefined in this case
  9. console.log("No such document!");
  10. }
  11. }).catch(function(error) {
  12. console.log("Error getting document:", error);
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement