Hello everyone,
I have users with a key called âinterestsâ where I store an array of arrays of strings ([[String]]), where each inner array is an interest composed of three strings, and another key called âinterestsFilterâ, with the same structure. How would I constrain a query so that I get the users that have any array interests match any array in interestFilter?
For example:
User1 has:
interests: [[âSoccerâ, âGoalkeeperâ, âBeginnerâ], [âBaseballâ, âPitcherâ, âAdvancedâ]]
CurrentUser has:
interestsFilter: [[âBaseballâ,âCatcherâ,âAdvancedâ],[âSoccerâ,âGoalkeeperâ,âBeginnerâ]]
User1âs interests[0] matches CurrentUserâs interestsFilter[1], so the query would return user1.
Thanks