Firebase Fundamentals

1 min. read

Notes
https://github.com/joeeames/FirebaseFundamentalsCourse

.child()
.parent()
.root()

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

Triggers
.on
.once

Shallow Nesting

Course:
https://app.pluralsight.com/player?course=firebase-fundamentals&author=joe-eames&name=firebase-fundamentals-m0&clip=0&mode=live

https://www.mongodb.com/blog/post/6-rules-of-thumb-for-mongodb-schema-design-part-1