我想根据状态根据索引最小化对Firebase中数据的检索
我试图在规则中添加.indexOn
我的规则正确吗?
{
/* Visit https://firebase.google.com/docs/database/security to learn more about security rules. */
"rules": {
".read": true,
".write": true,
"projects": {
"$projectid": {
"tracking": {
"list": {
"$listid": {
"tracking": {
"lbc": {
".indexOn": "status"
}
}
}
}
}
}
}
}
}
我的数据库看起来像这样