Firebase Database Rules indexOn FIREBASE WARNING: Using an unspecified index

Firstly, I received this warning

FIREBASE WARNING: Using an unspecified index. Consider adding ".indexOn": "id" at / data / places / tr to your security rules for better performance

After I changed the firebase rules.

{
  "rules": {
    ".read": "true",
    ".write": "true",
   "data": {
    "places": {
      "tr": {
        ".indexOn": "id"
      }
    }
   }
  }
}

Now I have no warning, but the code is not working.

+4
source share

Source: https://habr.com/ru/post/1676960/


All Articles