I am using Firebase database to store data. I am trying to snapshot every instance that a specific uid appears within a list. I am having trouble querying these ids.
CODE:
func reviews() {
let ref = Database.database().reference()
let user = Auth.auth().currentUser
let uid = user?.uid
ref.child("reviews").queryEqual(toValue: uid!).observe(DataEventType.childAdded, with: { (info) in
print(info) //prints null
})
}
Database:
What is the proper way of querying to show every instance of the uid (f7w0q6....)