How to transfer my Firebase Realtime database to Firebase Cloud Firestore

Viewed 2648

I'm already using Firebase Realtime database, but now Firebase has launched Cloud Firestore for database so, how can I transfer my data from realtime database to firestore as I already have users and they are using realtime database on the android app.

So, is there a way that I can transfer the database to firestore?

4 Answers

If you're looking for a magic button that can convert your database from the Realtime Database to Cloud Firestore, there isn't one! And as far as I read, Firebase creators won't create one. So unfortunately, you'll need to convert the database yourself.

Firebase has published a guide for migrating from Realtime Database to Cloud Firestore.

Edit: It seems they have changed that page. Here is a cached version of their migration guide published earlier.

I don't recommend you changing now, its is still in its BETA version and they are coming up with new things every now and then. I suggest to wait. Let them make up their mind first :P

Related