Hi,
Is is possible to have an .indexOn that is nested below two dynamic keys, the first being $userid and the second being an $id value under a static subkey.
Thanks in advance for any ideas or suggestions.
The data looks like:
{
"users" : {
"$userid" : {
"subkey" : "$id" { "timestamp" : "timevalue" }
}
}
Will this rule work to index queries on "users/$userid/subkey/$id/timestamp" ?
{
"rules": {
"users": {
"$userid": {
".read": "auth !== null && (auth.uid == $userid)",
".write": "auth !== null && auth.uid == $userid",
"subkey": { "$id" : { ".indexOn" : ["timestamp"] } }
}
}
}
}