Data structure:

```
houses (collection)
  name (string)
  users (map)
    90c234jc23 (map)
      percentage: 100% (string/number)

```

Rules:

```
allow read: request.auth.uid in resource.data.users;

```

The problem is when I try to query houses which user owns:

```
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()

```

No result are returned.