Let's say I have this database:
J-DSKFJASKDFJASKDJ:{
username: "Burned"
},
J-KASDJFAKSDJFKDSJ:{
username: "BurnedFirebase"
},
J-DFJKADSJFAKSDJFK:{
username: "FirbaseFilteringIsVeryLackingThereforItSucks"
}
If I use this:
Query q = database.orderByChild("username").equalTo("Burned");
It will actually return only "Burned
", although there is a BurnedFirebase
in the database. That's because equalTo()
doesn't work as a method such as contains()
.
Is there a method similar to contains()
? If not, is there a workaround?