-1

Firebase 建议将数据存储在 object 中。

但我发现很难适应我想要的东西。

 - I want to get the size of object.
 - The first object
 - and the last object.

firebase 支持这个对象吗?

4

1 回答 1

1

目前不单独存储(和更新)对象的大小并不容易。

您可以使用 轻松检索列表中的ref.startAt().limit(1)第一个对象,使用ref.endAt().limit(1).

于 2013-08-14T21:23:14.383 回答