Member-only story

Firebase Tips

How To Connect Data Between Different Firebase Services

Connect data between different Firebase services that belongs together with this simple idea!

xeladu

--

Photo by John Barkiple on Unsplash

Firebase offers several services for storing data, including Firestore, Storage, and Realtime Database. However, it can be difficult to keep track of which data belongs together across service borders. Use my approach on how to connect data between different Firebase services. It has worked great for me in the past!

🔔 Get a short summary of my Medium content on the 1st of every month in your inbox. Save time and pick what you like to read!

Click HERE to subscribe for free!

Unique indentifiers (UID)

When using Firebase Authentication, you get a UID per user. We can use this UID to identify corresponding data sets that belong to this user across services.

I also talk about it in my Firebase course because it’s a dead-simple way of how to connect data between different Firebase services.

Firebase Firestore (upper part) contains a collection with the same UID as a user in Firebase Authentication (lower part). We can identify user data by using a common UID across all Firebase services.

--

--

No responses yet