My firebase database is structured like:
Users:
    -uid_1
         -contacts
    -uid_2
         -contacts
             -uid1
                 <Other Info>
    -uid_3
         -contacts
             -uid1
                 <Other Info>
I was wondering if there was a way to search for all objects with the uid1 object in their contacts lists.
I've tried to this code:
    usersRef.queryOrdered(byChild: "uid1").observe(.value, with: { (snapshot) in
        print(snapshot.value)
    })
But it ends up printing all of users' children.
 
    