Firebase Orderbychild And Equalto() Queries Don't Work
I'm developing an Android app with the following Firebase database table: 'posts': { 'id_1': { 'author': 'google:111527135678918251124', 'color': -2960686, 'creationTime': 14
Solution 1:
About the ordering, I think the problem is that I'm retrieving data as a HashMap
which is itself unordered.
As suggested in the comments the second case needs .equalTo(1)
instead of .equalTo("type",1)
because it's preceded by the .orderBy()
method.
Post a Comment for "Firebase Orderbychild And Equalto() Queries Don't Work"