I have user
object and it has nested object status
which has few boolean flags. I need to search all the users which has that boolean flag. For example search all users which has flag1
status set. I am able to search with name and phone values
Data structure:
user : {
name: ABC,
phone: 1234567890,
status: {
flag1: true,
flag9: true
}
}