I have a database in Firebase for products. I have the following nodes:
+ Vinos
"5000" {}
"5001" {}
+ Quesos
"6000":{}
"6001"{}
In my component I only have the code and I need to recover it but I do not know which node it belongs to, would I have to search in all of them?
my database looks like this: Company - Wines - 5000 price: 32.90 Product: Flasca 500ml. Container: Glass - 5001 price: 20.05 Product: Flasca 100ml Container: Glass - Cheese -6000 price: 19.90 Product: Aged cheese container: ""
If I have the code 5000 for example in my component and would like to find it to obtain the data, I do not know the node to which it belongs, so I can not put db.ref ('Wines') or db.ref ('Cheese') ). how can I do it? Go through all the nodes and look for it ????