【发布时间】:2015-12-02 14:59:40
【问题描述】:
我在我的 android 应用程序中使用 firebase,但我遇到了问题。例如。我有这个条目
persons
-kskhdhksdhh
name:"Vladimir"
age:"25"
sexe:"M"
country:"Russia"
-jhgsdhghsgs
name:"Victoria"
age:"20"
sexe:"F"
country:"England"
-zejhbshevzh
name:"John"
age:"44"
sexe:"M"
country:"England"
我想选择居住在英国的男性。知道我们不能做两个 orderby,我如何重新排列我的数据以到达那里
【问题讨论】:
-
Firebase 查询只能对一个属性(或优先级或键)进行排序。但在这种情况下,您可以将这些值组合成一个属性。见stackoverflow.com/questions/26700924/…
标签: android request firebase firebase-realtime-database