I'm getting the following error:
FIREBASE WARNING: Using an unspecified index. Consider adding ".indexOn": "route" at / drivers to your security rules for better performance
Firebase rules:
{
"rules": {
".read": "true",
".write": "true",
".indexOn": "gameSearching"
}
}
My .ts file
initItems(serchQuery="gameSearching") {
return this.afDatabase.list('/motoristas', {
query: {
orderByChild: 'rota',
equalTo: serchQuery
}
});
}