FirebaseFirestore.getInstance().collection(House.COLLECTION)
// .whereArrayContains(House.USERS_FIELD, currentUser.getUid()) // does not work
.whereEqualTo("users." + currentUser.getUid(), currentUser.getUid()) // does not work either
.get()
[code]allow read: request.auth.uid in resource.data.users; [/code]
Проблема в том, что я пытаюсь запросить дома, которыми владеет пользователь:
[code]FirebaseFirestore.getInstance().collection(House.COLLECTION) // .whereArrayContains(House.USERS_FIELD, currentUser.getUid()) // does not work .whereEqualTo("users." + currentUser.getUid(), currentUser.getUid()) // does not work either .get() [/code]