Firestore Security Rules for Query with Array Contains
问题 I have a Flutter app in which users can make posts and tag the post as belonging to a group. Posts are stored in a global collection and each has a Post.groupId field: /posts/{postId} Based on my Firestore security rules and queries, users are only allow to read posts if they are in the group for which the post is tagged (i.e the posts's groupId field). Approved group users are stored in: /groups/{groupId}/users/{userId} I could query the posts from a particular user's group like: _firestore