Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Firestore Datastore mode for new project and switch to Native Mode

I'm developing a new iOS / Android App for which I need Firestore Native Mode. In my old project I see my Cloud Firestore (in native mode) but in my new project I think I accidentally selected Data-store somewhere, but I didn't add data yet. How can I revert this because I don't want to start a complete new project.

I've read this documentation

Old project:

enter image description here

Current one: enter image description here

After creating 1 entity and removing the same entity, it's not possible anymore to switch to native: enter image description here

like image 623
Jim Clermonts Avatar asked Jan 25 '26 04:01

Jim Clermonts


2 Answers

If you have not added any data to the database, the option to change to Native Mode should appear similar to the be below screenshot, which you can access from the GCP console directly and not from the Firebase Console.

GCP

There you should be able to change to Native Mode, without creating a new project.

like image 137
gso_gabriel Avatar answered Jan 27 '26 19:01

gso_gabriel


You can switch to Native mode using the following Cloud shell command, but you need to clear all your entities.

gcloud alpha firestore databases update --type=firestore-native

Take a look at this link https://cloud.google.com/firestore/docs/firestore-or-datastore?hl=it#changing_between_native_mode_and_datastore_mode

like image 28
ilNero Avatar answered Jan 27 '26 20:01

ilNero



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!