答案 0 :(得分:1)
ref.child("POSTBY").queryEqualToValue("abc@gmail.com").observe(.value) { snapshot in
for child in snapshot.children {
...
}
}
ref这是保存Firebase数据库实例的变量。
答案 1 :(得分:1)
queryEqualToValue已更改。通过queryEqual
ref.child("POSTBY").queryEqual(toValue: regex.encodeEmails(email).observe(.value) { snapshot in
for child in snapshot.children {
}
}