Retrieve nodes with foreign key in firebase

0

I intend to show in a view "my created games" and at the moment I can only show the key of the element, but I want to access the node "Items" with that key to obtain all its fields.

I know that by de-normalizing and duplicating the fields that interest me in the node 'MyPartiesCreated' - > idPartida I can have the solution, but it seems very redundant to repeat so much information, as well as the maintenance it entails, not to mention if the database would require that information in more nodes or each node contains more than 50 fields (for exaggerating a bit).

I want to try to have the information unified in a single entity or node and not denormalize.

Well, as the view of 'created games' returns all the matches in a Firebase reference, because I go through that matrix and make references to each node of games individually ... Well it does not work.

And the provider Partidas.ts contains ...

I also tried the 1:53 minute code of the video link and it does not work either, it always returns empty snap.val ()

Does anyone know how I can solve this problem? Greetings.

    
asked by DavidMB 02.02.2018 в 19:24
source

0 answers