Using firebase json

0

How can I do, for example: there are routes, and in the routes there are points, and each point in the "table" point has an idRota, which identifies the route to which it belongs. I know how to do this in relational, but with this json tree I have no idea

    
asked by anonymous 22.05.2016 / 01:53

1 answer

1

First we have the routes then > Subroutines - > ROTAID 3 levels.

{
   "Rotas":
   [ 
      { "sub_rota1":[ "ID_ROTA" ] }, 
      { "sub_rota2":[ "ID_ROTA" ] }, 
      { "sub_rota3":[ "ID_ROTA" ] } 
   ]
}
13.04.2017 / 05:16