How do you check for a value in an array within a firebase rule. I am trying to do something like this:
root.child('connections/'+auth.uid).child('friends').child(someFriendId).exists()
So under the connections node for current user, if someFriendId exists in the friends array, allow access. 'someFriendId' isn't the key for the friends array, that is an auto generated ID from using the firebase push() method.