在Firebase 3中获取未获取父级的孩子

时间:2016-12-31 05:41:12

标签: firebase firebase-realtime-database

是否可以在Firebase 3中获取没有整个父级的对象的子级?

例如,假设我有以下结构:

{
  "users": {
    "$uid": {
      "username": "name",
      "phone": "7777777777",
      "email": "john@doe.com",
      "user_settings": {
        "setting": true
      },
      "public_profile": {
        "basic_info": {
          "firstName": "John",
          "lastName": "Doe",
          "avatar": "url",
          "customer_rating": 5
        },
        "reviewsReceived": [3,5,2,8,1],
        "reviewsWritten": [9,6,4],
      }
    }
  }

我是否可以在不加载整个basic_info对象的情况下访问$uid

0 个答案:

没有答案