【问题标题】:How to store collection of data under array index in firestore如何在firestore中的数组索引下存储数据集合
【发布时间】:2019-02-26 05:01:14
【问题描述】:

我目前正在开发将一些旅行数据存储在数组中的应用程序。正如我们在android开发中所知道的,我们可以使用hash-map将数据存储到fire-store中,但这不符合我的需要,它存储没有数组索引的数据。是否有任何想法来构造所附屏幕截图中显示的数据。在此先感谢

【问题讨论】:

    标签: android arrays firebase google-cloud-firestore


    【解决方案1】:

    要在文档的字段中存储项目的索引数组,请使用 ArrayList。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-11-17
      • 2012-08-26
      • 1970-01-01
      • 1970-01-01
      • 2021-09-28
      • 1970-01-01
      • 1970-01-01
      • 2018-03-19
      相关资源
      最近更新 更多