【问题标题】:Storing Database with a uniqure key number Firebase [closed]使用唯一键号 Firebase 存储数据库 [关闭]
【发布时间】:2019-01-11 09:21:46
【问题描述】:

代码在表单中接受用户的输入并将其提交到 Firebase 云。但它使用随机唯一键顺序存储表单数据。我们不能以键顺序而不是一些随机值 id 存储这些表单吗?

   Edit 1: random values id like the one in the image.

enter image description here

【问题讨论】:

    标签: forms firebase file dart flutter


    【解决方案1】:

    这是不可能的(所有记录都应该有一个唯一的键),解决这个问题的方法是存储一个附加字段(例如“order”),然后按需要的顺序获取数据。

    【讨论】:

      猜你喜欢
      • 2019-05-25
      • 1970-01-01
      • 2019-02-18
      • 2010-12-02
      • 2010-10-13
      • 1970-01-01
      • 2016-12-15
      • 1970-01-01
      相关资源
      最近更新 更多