I have the next databases: recipes and ingredientes
recipes: {
"ingredients": {
"id1": true,
"id2": true,
"id3": true
}
}
ingredients: {
"id1": {
"text": "Ingrediente1",
"quantity": "100g"
},
"id2": {
"text": "Ingrediente2",
"quantity": "200g"
},
"id3": {
"text": "Ingrediente3",
"quantity": "300g"
}
}
When I access to the recipes, I have to "populate" de IDs and return the correct data. Somethig like this:
recipes: {
"ingredients": {
"id1": {
"text": "Ingrediente1",
"quantity": "100g"
},
"id2": {
"text": "Ingrediente2",
"quantity": "200g"
},
"id3": {
"text": "Ingrediente3",
"quantity": "300g"
}
}
}
Is it possible? I use angularFire (^4.0.0-rc0), firebase(3.9.0) and ionic 3.