【问题标题】:Nested rules in firebasefirebase 中的嵌套规则
【发布时间】:2023-03-20 06:22:02
【问题描述】:

我想在 firebase 对象中创建一个嵌套集合,但我还是这项技术的新手。如何在 firebase 实时数据库中创建这样的架构?

"consultants": {
  "id_1": {
    "name": "foo",
    "items": [
      {
         "field1": "value1",
         "text1" : "text1"
      },
      {
          "field1": "value2",
          "text1" : "text2"
      }
    ]

  }

}

【问题讨论】:

  • 我很难理解你在问什么。您可以编辑您的问题以包含您已经尝试过的内容吗?也许这足以澄清,有人回答。

标签: json firebase firebase-realtime-database nested


【解决方案1】:

由于您是新手,我建议您了解 JSON,因为 firebase 数据库是以 JSON 方式构建的。

一旦你得到一些线索,你可以继续 here (Realtime Database Data Structure)here (Firestore Database Data Structure),开始构建你的数据库。

希望对你有帮助!

【讨论】:

    猜你喜欢
    • 2018-06-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-29
    • 1970-01-01
    • 2011-11-29
    相关资源
    最近更新 更多