我在查询时陷入困境。我想根据“时间和点赞次数”查询帖子,但不想弄清楚如何在Firebase上查询。 示例:
Query mquery =FireBaseDatabase() getReference().getinstance()
.child("post").
orderedbychild("likes").startAt(30)
JSON结构
发布
fubeukdo8r7yjdjehbdjjd
message : "hello"
likes : 40
timestamp : 4 june 2019
pcjhuwnd783nhdjhbdhj
message : "hi there "
likes : 30
timestamp : 1 june 2019
tyjggjkshhx92u79p093
message : "how r u"
likes : 25
timestamp : 2 june 2019
qeldhkdlje8fhj00jdkjeh
message : "all is well"
likes : 20
timestamp : 1 june 2019
在这里,我只希望获得今天的帖子,且喜欢次数超过30。.....所以您知道如何在Firebase上解决此问题