Assume my data looks something like this :
{
  "key_data" : {
    "1qwqwqwqwq" : {
      "map_id" : "9010",      
    },
    "1212wdwdw" : {
      "map_id" : "098",      
    },
    "1212dfefe" : {
      "map_id" : "5612",      
    },
    "1212eerer" : {
      "map_id" : "987",      
    }            
  }
}
In Firebase iOS Swift Library how do I get all key_data where map_id in ['9010','098']?
Currently I am running this piece of code in a loop and appending the result into an array:
// for map_id in map_ids---
ref.queryOrderedByChild("map_id").queryEqualToValue(map_id)
                                 .observeEventType(.Value) { snapshot in
                                     //append into array
                                 }