Beginning FlutterFire

Aug 30 2022 · Dart 2.16, Flutter 3.0, Visual Studio Code 1.69

Part 3: Read & Write Data with the Cloud Firestore

16. Set Cloud Firestore Rules

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 15. Delete Data from the ListView Next episode: 17. Add Cloud Storage to Your App

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

When you created your Firestore database from the Firebase console, one of the questions that you answered during the setup was whether you wanted to use the database in test mode. This implemented a very permissive rule, so that anyone with the link to your database can get full access to your data.

rules_version = '2'; 
service cloud.firestore { 
  match /databases/{database}/documents { 
match /{document=**}  
if request.auth != null; 
allow read, write: if request.auth != null;