Android Firebase Query -


i have structure enter image description here now, im making query this:

 databasereference myref = database.getreference("users");         myref.equalto("6991580","ci").addlistenerforsinglevalueevent(new ... 

i expecting second node result.. get:

datasnapshot { key = users, value = null }

so, wrong query? or maybe im doing wrong?

best regards , reply.

you need tell firebase child property want order/filter on:

myref.orderbychild("ci").equalto("6991580").addlistenerforsinglevalueevent(... 

the other format of ordering commonly misunderstood version. i'd recommend staying away it.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo