Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在firebase中使用对象数组_Firebase - Fatal编程技术网

在firebase中使用对象数组

在firebase中使用对象数组,firebase,Firebase,Firebase建议将数据存储在对象中 但我发现很难满足我的要求 - I want to get the size of object. - The first object - and the last object. firebase是否支持在对象上进行此操作?如果不单独存储(和更新)对象,则很难检索对象的大小 您可以使用ref.startAt().limit(1)轻松检索列表中的第一个对象,使用ref.endAt().limit(1)轻松检索最后一个对象

Firebase建议将数据存储在对象中

但我发现很难满足我的要求

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

firebase是否支持在对象上进行此操作?

如果不单独存储(和更新)对象,则很难检索对象的大小

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