Open the Firebase console and select your project. Then, select Realtime Database, Cloud Firestore or Storage from the product navigation, then click Rules to navigate to the Rules editor. Edit your rules directly in the editor.
Read moreHow do I check my firestore rules?
Test your Cloud Firestore Security Rules
Read moreDo firestore rules apply to cloud functions?
Security rules and Cloud Functions are both ways to protect data in Cloud Firestore . It’s usually better to lean more heavily on security rules, as much as they can do what you require. But they still combine very well with Cloud Functions to establish robust and complex security for you app.
Read moreWhat firestore rules?
Cloud Firestore Security Rules allow you to control access to documents and collections in your database . The flexible rules syntax allows you to create rules that match anything, from all writes to the entire database to operations on a specific document.
Read more