Firebase Firestore - security rule based on “where” query parameters
问题 I'm trying to secure requests to a collection to allow any single get , but to allow list only if a specific key is matched. Database structure is like this: posts post1 content: "Post 1 content" uid: "uid1" post2 content: "Post 2 content" uid: "uid1" post3 content: "Post 3 content" uid: "uid2" The Firestore query I'm making from Vue: // Only return posts matching the requested uid db .collection("posts") .where("uid", "==", this.uid) The security rules I'd like to have would be something