I want to implement email search in my application, but am not fixated on query design. my data structure is as follows:
users { uid { email: email@email.com
I tried the following query:
console.log(reqestEmail); // proper email here new Firebase(USERS) .startAt(reqestEmail) .endAt(reqestEmail) .once('value', function(snap){ var foundUser = snap.val(); console.log(foundUser) // output is null });
I think the problem is that I have a uid on the way. But how to implement a search with this data structure - if I this uid is a necessary result?
If it is important to use Firebase 2.0.2 and AngularFire 0.9
Sorry guys: noob is here. Also at risk of account retention.
source share