I have a collection (groups) with documents that has multiple properties, one of them (members) is an array of Maps with the following structure:
members:[{"is_admin":true,"user":"users/someuserid"}]
When "members" was an array of references (to user documents) it was easy to find all the groups a user is member of:
db.collection("groups").whereField("members", arrayContains: db.document("users/"+UserDefaults.standard.string(forKey: "firebase_uid")!) ).getDocuments(){
I'm trying to achieve the same thing (get all the group documents a user is member of) but I can't find the right way to query the inside of the map property.