I\'m studying AngularJS and Firebase and I\'m playing with a simple ChatApp, just to understand the code.
My Firebase DB structure is like this:
\"chat\"
I am aware that this may be a bit too late but here is something that may help you. I was looking for the same information as you, and in my case, it helped me.
$usersId
matches any child key. So you have to do something like this.
{
"rules": {
"chat": {
"rooms": {
"users": {
"$usersId": {
".indexOn": ".value"
}
}
}
}
}
My case:
Using an unspecified index. Consider adding ".indexOn": "date"
at messages/-L2bPVX4_fL41H7lhexc
to your security and Firebase Database rules for better performance:
L2bPVX4_fL41H7lhexc == child
in my NoSQL database structure
solution:
"messages": {
"$messagesId": {
".indexOn": "date"
}
}