I am try to create ios application for hotel booking. All my data are stored in firebase. My hotel's name and location are stored in "HotelLocation" table.
{
"HotelLocation": {
"H1": {
"name": "Ghetu hotel",
"location": "shonargao,dhaka"
},
"H2": {
"name": "BB hotel",
"location": "gulshan,dhaka"
},
"H3": {
"name": "Shuvashish hotel",
"location": "uttara,dhaka"
},
"H4": {
"name": "Bodi hotel",
"location": "uttara,dhaka"
}
}
}
This is my json format of table 'HotelLocation' but I am unable to retrieve data from this table for only 'uttara' i.e. if I search for uttara then I should get
Shuvashish hotel
Bodi hotel
I tried by using 'queryEqualToValue' but problem is that 'uttara,dhaka' because firebase is case sensitive. So ',dhaka' is creating problem.
Is there any way of using SQL Command "%LIKE%" in Firebase?