Firebase Fundamentals

1 min. read



In a database, when you have a ref, you can use .parent to get the parent node

Data Design Principles
Don’t treat Firebase like a relational database
Use root branches as Primary containers (different kinds of data in the app)
Avoid deep nesting
Instead use shallow nesting (get only the data you care about)
Duplicate data in the right places
No joins
Design around data access
Data design is driven by Data Access Needs
Iterative Design


Shallow Nesting