title: What I need to change in request to be able to access the new Firestore Security Rules
body: <p>Currently, I'm using the default rules for firestore:</p>
  <pre><code>rules_version = '2';
  service cloud.firestore {
    match /databases/{database}/documents {
      match /{document=**} {
        allow read, write: if true;
      }
    }
  }
  </code></pre>
  <p>But now I want to permit only logged users to manipulate the data in Firebase, so I found this rule on Internet:</p>
  <pre><code>rules_version = '2';
  service cloud.firestore {
    match /databases/{database}/documents {
      match /{document=**} {
        allow read, write: if request.auth != null;
      }
    }
  }
  </code></pre>
  <p>Now what I have to change in my code to be able to access the db with the logged users? Is there a way to do it globally or I need to change every get in the code? Above is an example of query I have:</p>
  <pre class="lang-dart prettyprint-override"><code>await databaseReference
          .collection(&quot;col1&quot;).doc('myDocs').collection(colThings)
          .orderBy('day')
          .get()
          .then((QuerySnapshot snapshot) {
        snapshot.docs.forEach((f) =&gt; things.add(f.data()));
      })
  </code></pre>
  <p>And another question about it: This rule, once running properly, covers all firebase or only Firestore?</p>