I have data set up like this:
Tasks:{
Group 1:{
pushid1:{
date: 18921949021,
title: \"Do something\"
},
pushid2:{
date: 189219490
I guess you're looking for:
{
".read": true,
".write": true,
"rules": {
"Tasks": {
"$groupid": {
".indexOn": "date"
}
}
}
}
The Firebase documentation is usually a pretty good read. Spending an hour or less in the security guide, will ensure you have a better understanding of this and many other topics.