I'm making an iOS which integrate Firebase SDK. I got a problem about query data on it.
For example, I have a JSON data on Firebase
Source from https://www.firebase.com/blog/2014-11-04-firebase-realtime-queries.html
{
"bruhathkayosaurus": {
"appeared": -70000000,
"height": 25,
"length": 44,
"order": "saurischia",
"vanished": -70000000,
"weight": 135000
},
"lambeosaurus": {
"appeared": -76000000,
"height": 2.1,
"length": 12.5,
"order": "ornithischia",
"vanished": -75000000,
"weight": 5000
},
...
Data from https://dinosaur-facts.firebaseio.com/
Can I query some dinosaurs which height satisfies following condition:
height * height + length * length > 100 (just for example)
If possible, how can I do this using iOS Firebase SDK?
Reference about querying data using iOS Firebase SDK https://www.firebase.com/blog/2014-11-04-firebase-realtime-queries.html