Using the json from firebase

Asked

Viewed 228 times

0

As I can do, for example: there are routes, and on the routes there are points, and each point of 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

1 answer

1

First we have the routes afterward -> Subroutes -> ID_ROTA 3 levels.

{
   "Rotas":
   [ 
      { "sub_rota1":[ "ID_ROTA" ] }, 
      { "sub_rota2":[ "ID_ROTA" ] }, 
      { "sub_rota3":[ "ID_ROTA" ] } 
   ]
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.