Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Firebase Database and Firestore both at the same time

I have been reading a bit about Firestore and having a global Firebase Project, I'm of course interested in using Firestore.

Reading this firebase vs firestore page, at the bottom they say we can use both within the same App...

Well, that would be cool but wait...
What about Authentication?
Data Structure being different?
Storage?

With things being different between the two, how is it possible to use both at the same time within the same App?

I can't really picture it.

Cheers

like image 370
Andy Strife Avatar asked Aug 06 '26 08:08

Andy Strife


1 Answers

Yes you can. Actually each module have his method :

firebase.database() for database
firebase.firestore() for firestore
firebase.auth() for authentication

Etc...

And yes, database and firestore have different data structure

like image 88
Eugene Alitz Avatar answered Aug 08 '26 22:08

Eugene Alitz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!