In my firestore database I'm naming documents by combining two users ids and a '-' between them, like this:
/collection/{userID123-userID456}
For every user I want to query all those documents that his id is one of the two (the string either starts or ends with his id).
It works well with my security rules: allow read: if request.auth.uid in docID.split('-')
but I did'nt find a way to do so with get/query for the document's id.
I was trying to query those documents' keys but it seems that this security rule blocks that kind of operation.
Thanks for your help!