Using an unspecified index. Consider adding “.indexOn”: “g”

前端 未结 1 1595
独厮守ぢ
独厮守ぢ 2021-02-07 02:54

I\'m using Geofire to do a circleQuery in a certain area. With my observers set up I am getting back locations, however, with the location I also get back a \"Using an unspecifi

相关标签:
1条回答
  • 2021-02-07 03:29

    Removing the brackets around ["g"] fixes the problem. Here is the final piece of code:

    "rules": {
      "karmadots": {
        ".read": true,
        ".write": true,
        "geofire": {
          ".indexOn": "g"
        } 
      }
    }
    
    0 讨论(0)
提交回复
热议问题