title: Does Firestore security rules return early?
body: <p>I have 2 conditions for checking permission to the user. The first condition doesn't require any database query but the second one does.
  For Example</p>
  
  <pre><code>allow read, write: if (docId == request.auth.uid);
  allow read: if get(/databases/$(database)/documents/groups/$(docId)).data[request.auth.uid].membership == true
  </code></pre>
  
  <p>My database is structured in a way that I need to give read and write access if <code>docId</code> belongs to that user. Otherwise, the user might be accessing something from a group which he's part of. In which case I'll make a DB query and check if the user really a member.</p>
  
  <p>Suppose a user is accessing a document that belongs only to him, in which case the DB query is not required and the first condition should return <code>true</code>.</p>
  
  <p>Will the rule still make a DB query?</p>