【发布时间】:2017-08-29 09:55:26
【问题描述】:
让我们假设上面的 firebase 数据库架构。
我想要的是检索“15039996197”时间戳之后的消息。每个消息对象都有一个createdAt 属性。
如何仅在特定时间戳之后才能收到消息?在这种情况下,最后两条消息是我要检索的。
我尝试了firebaseb.database().ref(`/rooms/$roomKey/messages`).startAt('15039996197'),但失败了。它返回 0。我该怎么做?
【问题讨论】:
标签: firebase firebase-realtime-database