I have a collection called users
, it its filled with elements(users) named by their Firebase uids, ex:
users/1k239k1293k01k923
Lets suppose I need to retrieve an user (or all users) which have the atribute provider == "facebook"
.
Something like users/$someuser/provider == "facebook"
The problem is I don't know what user will match this atribute.
I'm using Javascript SDK (web)