Answers for "check if item is already registered in angular angularfire site:stackoverflow.com"

0

check if item is already registered in angular angularfire site:stackoverflow.com

ref.child("users").orderByChild("ID").equalTo("U1EL5623").once("value",snapshot => {
    if (snapshot.exists()){
      const userData = snapshot.val();
      console.log("exists!", userData);
    }
});
Posted by: Guest on October-11-2020
0

check if item is already registered in angular angularfire site:stackoverflow.com

//every user must have an email
firebase.database().ref(`users/${userId}/email`).once("value", snapshot => {
   if (snapshot.exists()){
      console.log("exists!");
      const email = snapshot.val();
   }
});
Posted by: Guest on October-11-2020

Code answers related to "check if item is already registered in angular angularfire site:stackoverflow.com"

Code answers related to "Javascript"

Browse Popular Code Answers by Language