I want to fetch my firebase data based on two Childs "category and city" I've tried to make it like this but it didn't work
let refPlace = Database.database().reference().child("places").queryOrdered(byChild: "category").queryEqual(toValue: catId).queryOrdered(byChild: "city").queryEqual(toValue: cityId)
is there a way to query based on those 2 variables ?
and I also want to know if there is other way than queryEqual and queryStarting that I can use for search, if I wanna search for a child named "one two three" by typing "two" is that possible?