# Firestore Database

Firestore is a flexible, scalable database for mobile, web, and server development from Google Cloud Platform. It's part of Firebase, a platform for developing mobile and web applications. Firestore is a NoSQL document database that simplifies storing, syncing, and querying data across multiple platforms and devices.

There are two Firestore Database modes to choose from:

* **Firestore Native Mode** is the default mode for Firestore. It provides a richer feature set and supports more advanced querying capabilities, such as compound queries and real-time updates. Use Firestore Native for new projects and applications that require real-time updates and advanced querying features.
* **Datastore Mode** provides a subset of Firestore's features and capabilities, supports a simpler data model, and lacks support for nested subcollections. Use Datastore Mode for migrating existing applications from Google Cloud Datastore to Firestore or for applications that do not require real-time updates or complex querying capabilities.

## Creating a Firestore Database

1. From the **Tenant** list box, select your Tenant name.
2. From the DuploCloud portal, navigate to **Cloud Services** -> **Firestore Database**.
3. Click **Add**. The **Add Firestore DB** page displays.<br>

   <figure><img src="/files/kVp9ZAmIFLvs3Vp9TOGk" alt=""><figcaption></figcaption></figure>
4. In the **Name** field, enter a name for your database.
5. From the **Type** list box, select **FIRESTORE\_NATIVE** or **DATASTORE\_MODE**.
6. Select your location from the **Location** list box.
7. From the **Point in Time Recovery Enablement** list box, enable or disable point in time recovery, or lock your resources pessimistically.
8. From the **Delete Protection State list box,** enable or disable delete protection.
9. Click **Create**. Your Firestore Database is created.

<figure><img src="/files/dv8oWgzQaGVL6vT5va9h" alt=""><figcaption><p>The details for the created Firestore Database.</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/overview-1/gcp-services/gcp-databases/firestore-database.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
