Advertisement
Guest User

Untitled

a guest
Jul 10th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.39 KB | None | 0 0
  1.     db.collection("contacts").where("name", "Ruben Kroes", true)
  2.     .get()
  3.     .then(function(querySnapshot) {
  4.         querySnapshot.forEach(function(doc) {
  5.             // doc.data() is never undefined for query doc snapshots
  6.             console.log(doc.id, " => ", doc.data());
  7.         });
  8.     })
  9.     .catch(function(error) {
  10.         console.log("Error getting documents: ", error);
  11.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement