I would like to know if firebase can query this scenario: I'm searching for people who has a dog and/or a cat. Result should be that i get user1 and user2
{
"users": {
"user1": {
"pets": {
"dog": true,
"cat": true
}
},
"user2": {
"pets": {
"rabbit": true,
"cat": true
}
},
"user3": {
"pets": {
"bird": true
}
}
}
}
Solution could be for FireStore or Realtime Database