Firebase - random query

后端 未结 3 660
情书的邮戳
情书的邮戳 2020-11-30 13:32

I am making and application that show a first screen with a bunch of randomly picked data from a node in Firebase database.

To present user with different data every

3条回答
  •  眼角桃花
    2020-11-30 14:12

    Don't think there is a way to randomly grab data from the Firebase database as all queries that you can construct end up being deterministic in some way, either based on the generated push ids (which in turn are based on time) or some other key ordered lexicographically. I think the best way would be to grab a list of data from a node and randomly choose the data client side.

提交回复
热议问题