Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.collection("contacts").where("name", "Ruben Kroes", true)
- .get()
- .then(function(querySnapshot) {
- querySnapshot.forEach(function(doc) {
- // doc.data() is never undefined for query doc snapshots
- console.log(doc.id, " => ", doc.data());
- });
- })
- .catch(function(error) {
- console.log("Error getting documents: ", error);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement