I want to retrieve all members that have a particular ID in the array "types".
members in firestore:
{
types: ["userId1", "userId2"]
}
security rules:
match /members/{types} {
allow read, write: if get(/databases/$(database)/documents/members/$(types)).data.parents.hasAny([request.auth.uid]);
allow read, write: if request.auth.uid in get(/databases/$(database)/documents/members/$(types)).data.parents;
}
Both get me access denied, help is appreciated.