title: converting rdms like instagram to firebase nosql
body: <p>I am planning to develop production ready hybrid <strong>ionic3</strong> mobile application similar to <strong>instagram</strong> using firebase. I chose <strong>firestore</strong> nosql for storing data and querying.</p>
  
  <p>I have experience designing schema in RDMS ( ignore second green colored user table ). But I am struggling to design <strong>NoSql</strong> schema for my application.
  Below I added RDMS schema that I want to convert it to nosql.
  <a href="https://i.stack.imgur.com/1yCEd.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/1yCEd.jpg" alt="rdms table schema"></a></p>
  
  <p><strong>There are several queries I want to make efficiently.</strong></p>
  
  <ol>
  <li>Show list of latest photos in homepage for guest session.</li>
  <li>Show list of followers photos followed by the user in homepage.</li>
  <li>List photos tagged by "tag"</li>
  </ol>
  
  <p><strong>Simple Sql query for above list</strong></p>
  
  <ol>
  <li><code>Select * from photo LIMIT=50</code></li>
  </ol>
  
  <p>How should I approach to convert <strong>photo</strong> and <strong>user</strong> table to firestore NoSql OR NoSql in order to query efficiently?</p>