title: Firestore structure model
body: <p>Coming from SQL background and watching tutorials, I am trying to do a model in Firestore to understand how things work. I basically wants model a situation where user has multiple lists and every list has his friends ( to display names of friends). Does the below make sense?</p>
  
  <pre><code>Users
      "john@xyz.com"
           -Name: John Smith
  
      "celina@xyz.com"
           - Name: Celina West
  
      "dan@xyz.com"
           - Name: Dan Nelson
  
  Lists
       "john@xyz.com"
             List_Titles
                    "List 1"
                         - &lt;AutoGenId&gt;: Celina West
                         - &lt;AutoGenId&gt;: Dan Nelson
  </code></pre>
  
  <p>anything with "-" is a field, anything with bracket it Document and anything without prefixes is collection.</p>
  
  <p>One issue I find here, is that lets say a user updates his/her name. Then I have to go not to only Users Collection but through every subcollection List to look for that person and update name. I thought about using email ID instead of name but then that goes against the "structure the nosql db as you view it" way. Plus then everytime  I have to hit the Users tables in a seperate call for every Id to query the name.</p>
  
  <p>Is my assumption correct?
  Thanks</p>