Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var docRef = db.collection("cities").doc("SF");
- docRef.get().then(function(doc) {
- if (doc.exists) {
- console.log("Document data:", doc.data());
- // IS THERE A PROPERTY THAT CAN DISPLAY THE DOCUMENT FILE SIZE?
- } else {
- // doc.data() will be undefined in this case
- console.log("No such document!");
- }
- }).catch(function(error) {
- console.log("Error getting document:", error);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement