I have this structure :
I'm trying to get all the value corresponding to the tag "Courses" like this :
FirebaseDatabase.getInstance().getReference().child("Belgique").orderByChild("Tag").equalTo("Courses").addListenerForSingleValueEvent...
EDIT
EXPECTED RESULT :
"Key2" : {
"Tag" : {
"Courses":"ok",
"Tomate" : "ok"
}
}
but it doesn't to work. (The two nodes with the same name "Tag" are not related at all) Would have any tips? Thank you