I am saving data as follows in the Firebase:
I want to find all records that have #Yahoo in their title. What will be the exact query for that?
I am
DatabaseReference mDatabase =FirebaseDatabase.getInstance().getReference("userTasks");
mDatabase.orderByChild("title").equalTo("#Yahoo").addListenerForSingleValueEvent(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
for (DataSnapshot snapshot: dataSnapshot.getChildren()) {
///Here you can get all data
}
@Override
public void onCancelled(DatabaseError databaseError) {}
});