check if item is already registered in angular angularfire site 3astackoverflow com

Solutions on MaxInterview for check if item is already registered in angular angularfire site 3astackoverflow com by the best coders in the world

showing results for - "check if item is already registered in angular angularfire site 3astackoverflow com"
Giovanni
05 Oct 2020
1//every user must have an email
2firebase.database().ref(`users/${userId}/email`).once("value", snapshot => {
3   if (snapshot.exists()){
4      console.log("exists!");
5      const email = snapshot.val();
6   }
7});
8
Walker
09 Jul 2017
1ref.child("users").orderByChild("ID").equalTo("U1EL5623").once("value",snapshot => {
2    if (snapshot.exists()){
3      const userData = snapshot.val();
4      console.log("exists!", userData);
5    }
6});
7