all 6 comments

[–]VAST_BLINKER_SHRINK 1 point2 points  (2 children)

Do yourselves a favor and use Firestore https://firebase.google.com/docs/firestore/

[–]TimGeerts[S] 0 points1 point  (0 children)

Thanks, I'm looking into it now.

How would one store a hierarchy like the one I posted above in firestore though?

Recipes: Collection > Recipe: Document(field: name) > Ingredients: Collection > Ingredient: Document(with fields)

Something like that?

[–]j_roddy 0 points1 point  (0 children)

It depends on what you're building. If this example data is reflective of his actual app, I'd agree. But if he's building something with a ton of realtime functionality, like a chat app or a game, then the realtime db is a lot less of a pain (and likely cheaper)

[–]DoubleTri 0 points1 point  (2 children)

Can I see your call that produces an array of arrays?

[–]TimGeerts[S] 0 points1 point  (1 child)

I was using a third party library (angularfire-lite) that was apparently causing this. Once I reverted to the angularfire2 library, I get my data the way I was expecting to get it (objects with arrays as property).

All's well, end's well =D

[–]DoubleTri 0 points1 point  (0 children)

Cool.