I have firebase realtime database with data like in below image
user-ids key will have array of emails.How could i apply queryOrderedByChild with key and array of values in iOS
var ref = Database.database().reference().child(Constants.ACTIVES)
self.ref.queryOrdered(byChild: "user_ids").queryEqual(toValue: "krishna.vutti@gmail.com").observe(.value, with: { (snapShot) in {
})
in above query toValue is accepting single string value but in my case it would be array of emails.