I have a problem with the code regarding the snapshot
where I'm trying to get the quantity
value in my Firebase Database. I have captured my database.
and
firebase.database().ref("mycart/"+uid+"/"+imguid).once("value").then(function(snapshot) {
console.log("uid="+uid);
console.log("imguid="+imguid);
console.log("snapshot.val()="+snapshot.val());
if(snapshot.exists()){
console.log("snapshot"+snapshot.key);
}
console.log("snapshot doest exists");
});