My .indexOn rule added to Security & Rules isn't taken into account

后端 未结 2 771
無奈伤痛
無奈伤痛 2020-12-04 03:19

I\'m trying to set up custom indexes on my firebase data for sorting on certain fields.

Here is my data:

GET https://testindexon.firebaseio.com/.json

<
2条回答
  •  借酒劲吻你
    2020-12-04 03:36

    It looks to me like your .indexOn is on the wrong path. You're fetching root, but put the .indexOn under the child path testindexon/. Thus, your URL would need to be https://testindexon.firebaseio.com/testindexon/.json in order to take advantage of the orderBy.

提交回复
热议问题