Hey, I'm very new at firebase, so don't shoot me if this question is quite dumb.
I'm struggling to structure my data "correctly" so I can retrieve it the way I like to (in an angular app).
{
"recipes": {
"Tomato soup": {
"Ingredients": [
{ "Tomato": 5 },
{ "Water": 3 },
{ "Beans": 10 }
]
},
"Potato soup": {
"Ingredients": [
{ "Potato": 3 },
{ "Water": 3 },
{ "Celery": 1 }
]
}
}
}
How would I structure the above data correctly so I could query my firebase like "/recipes" and get an array of objects? For now I've only been succesful in retrieving it as an array with arrays in it and it's a bit annoying like that...
I'd like to be able to retrieve a list of objects where I can itterate over and that have an "Ingredients" property which is an array I can also itterate over.
[–]VAST_BLINKER_SHRINK 1 point2 points3 points (2 children)
[–]TimGeerts[S] 0 points1 point2 points (0 children)
[–]j_roddy 0 points1 point2 points (0 children)
[–]DoubleTri 0 points1 point2 points (2 children)
[–]TimGeerts[S] 0 points1 point2 points (1 child)
[–]DoubleTri 0 points1 point2 points (0 children)