I would like to filter companies based on faculties in my Android App. The problem is that I can't find any method to get all "companies" that contain a certain value on the "faculties" array field. I know that there is similar question for web app but after days of trying to implement this I had no luck.
This is my data structure in Firebase written in JSON:
{
"Companies" : {
"01" : {
"day" : "Wtorek",
"description" : "Super firma",
"faculties" : [ null, "Informatyka", "Zarządzanie " ],
"logoLink" : "gs://testowa-baza-59b76.appspot.com/Loga firm/Netcompany.png",
"name" : "netcompany",
"standNumber" : "A68"
},
"02" : {
"day" : "Wtorek|Środa",
"description" : "Słaba firma",
"faculties" : [ null, "Informatyka", "Budownictwo" ],
"logoLink" : "gs://testowa-baza-59b76.appspot.com/Loga firm/PWC.png",
"name" : "pwc",
"standNumber" : "B78"
},
"03" : {
"day" : "Środa",
"description" : "Najgorsza firma świata",
"faculties" : [ null, "Informatyka", "Matematyka" ],
"logoLink" : "gs://testowa-baza-59b76.appspot.com/Loga firm/Samsung-logo-2015-Nobg.png",
"name" : "samsung",
"standNumber" : "C77"
}
}
}