Код: Выделить всё
houses (collection)
name (string)
users (map)
90c234jc23 (map)
percentage: 100% (string/number)
Код: Выделить всё
allow read: request.auth.uid in resource.data.users;
Код: Выделить всё
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()
Подробнее здесь: https://stackoverflow.com/questions/540 ... ins-string