Brettski
Brettski

Reputation: 20101

Determine current Firestore mode

We are setting up a new project/environment in Google Cloud for our application. The applications uses Firestore which is being setup in the new project.

How do you determine which Firestore mode the current Firstore is running in?

When you navigate to Firestore in a new project you are presented with an option, select Firestore mode, Native Mode or Datastore Mode. The goal is to ensure the new environment being setup is the same as the current one.

Upvotes: 4

Views: 809

Answers (3)

Artur A
Artur A

Reputation: 9159

One more option is to go to GCP Console, search for "Firestore" page and check the "Mode" column.

enter image description here

Upvotes: 2

ironstone13
ironstone13

Reputation: 3443

Adding to the answer above, if you'd like to check this using Cloud SDK via command line you can

  1. use gcloud firestore databases list and look for the type parameter
  2. use gcloud firestore databases list --format="value(type)" which will output the type directly

screenshot of using gcloud firestore databases list command

Upvotes: 1

marian.vladoi
marian.vladoi

Reputation: 8074

Firestore Datastore

When you check the Firestore in the Google Cloud Console Navigation menu, you will see Firestore for Native Mode (Firestore API), and Datastore for Datastore Mode (Datastore API).

Upvotes: 3

Related Questions