title: How can I make relational database in firebase?
body: <p>I'm working on very big scale projects. Finally, I've chosen Android and Firebase due to user friendliness and simplicity. I'm going to have multiple children like following:</p>
  
  <pre><code>products
   1
   name: 
  "p1"
   2
   name: 
  "p2"
  
  
   route
   1: 
  "xyz"
   2: 
  "abx"
  </code></pre>
  
  <p>Here is one user case:
  If user updates route 1 and puts 'john' instead of 'xyz', then name 1 should be updated to 'x1' instead of 'p1'.</p>
  
  <p>One of the way is to do it programatically via android to use methods like 'ondatachange()' But I want to do it on the server side. I don't want to write each time when route 'x' gets updated product 'a' should update in android app.</p>
  
  <p>How can we build relational database on firebase?</p>
  
  <p>Remember there won't be just two tables but there will be 50+ key-value pairs.</p>