How to create an index on a child property of an array object in Firebase

后端 未结 1 1938
野的像风
野的像风 2021-01-11 09:38

In my firebase app I am storing objects in an array structure using the push() method that generates unique ids. These objects have a child property called \"scheduledDate\"

相关标签:
1条回答
  • 2021-01-11 09:59

    This should work:

    {
      "rules": {
        "events":{
          ".read" : "auth != null",
          ".write" : "auth != null",
          "$uid": {
            ".indexOn": "scheduledDate"
          }
        } 
      }
    }
    
    0 讨论(0)
提交回复
热议问题