I'm creating a dating app with React Native and Firebase Cloud Firestore. In my app users can dislike other users to exclude them from the next query.
Which database structure should I use to do the Firestore query?
When you dislike someone, the userID will be stored in an array inside your user document. The Firestore query only provides 'array-contains' operator to filter based on array values. So I need to query "array-NOT-contains" but Firestore doesn't provide it.
my Firestore Database structure:
collection('user').doc('userID').match.dislike[dislikedUserID1, dislikedUserID2,...]