I'm trying to verify data if it's "Yes".So if this user "Minivip=Yes" turn something.But i can't get data from firebase.I get this error and i changed my database rule like this.
{
"rules": {
"Kullanıcılar": {
".indexOn": ["Minivip", "Kredi"]
},
".read": true,
".write": true
}
}
My database looks like
|Kullanicilar
-|userid
--Minivip: "Yes";
-|userid
--|Minivip: "Yes";
-userid
--|Minivip: "No";
I use this code for receive data from database.
var viplerigetir = firebase.database().ref();
viplerigetir.child('Kullanıcılar').orderByChild('Minivip').equalTo('Evet').on("value", function(snapshot) {
//console.log(snapshot.val());
snapshot.forEach(function(data) {
console.log(data.key);
});
});
But i keep get this error on console.What's wrong ?
Error message
FIREBASE WARNING: Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ".indexOn": "Minivip" at /Kullanıcılar to your security rules for better performance.