diff --git a/website/docs/connect-data/reference/querying-firestore.md b/website/docs/connect-data/reference/querying-firestore.md index 2c27e4c58a..5d96abe5db 100644 --- a/website/docs/connect-data/reference/querying-firestore.md +++ b/website/docs/connect-data/reference/querying-firestore.md @@ -17,12 +17,14 @@ The following section is a reference guide that provides a complete description
-The domain or network location of your database instance. This value includes your **Project ID** in the format +Optional. The Firebase Realtime Database URL of your project, in the format: ``` https://PROJECT_ID.firebaseio.com ``` +Appsmith doesn't use this value to connect to Firestore, and it doesn't select which Firestore database your queries run against. To query a named Firestore database, use [Database ID](#database-id). +
#### Project ID @@ -33,6 +35,23 @@ The unique identifier for your Firestore project, accessible in your Firebase pr +#### Database ID + +
+ +Optional. The ID of the Firestore database to query. Leave it empty to use the project's `(default)` database. If your project has more than one Firestore database, enter the ID of the named database here. For more information, see [Manage databases](https://firebase.google.com/docs/firestore/manage-databases). + +A database ID must: + +- Be 4 to 63 characters long. +- Contain only lowercase letters, numbers, and hyphens. +- Start with a letter and end with a letter or number. +- Not be shaped like a UUID. + +If the ID doesn't meet these rules, Appsmith shows an **Invalid Database ID** error. If the database doesn't exist in the project, **Test configuration** fails with a message asking you to check the Database ID and Project ID. + +
+ #### Service account credentials
@@ -48,6 +67,14 @@ Service account credentials are used to authenticate your queries to Firestore.
+:::note +If you change **Database URL**, **Project ID**, or **Database ID** on a saved datasource, enter the **Service account credentials** again before you test or save it. Otherwise, Appsmith shows the error "The datasource connection settings changed. Re-enter the credentials and try again." +::: + +:::caution +**Database ID** isn't carried over when you export an app, connect it to Git, or fork it without its datasource configuration. After you reconnect the datasource, enter the **Database ID** again. Until you do, queries run against the `(default)` database. +::: + ## Create queries The following section is a reference guide that provides a complete description of all the read and write operation commands with their parameters to create Firestore queries. diff --git a/website/static/img/firestore-datasource-config.png b/website/static/img/firestore-datasource-config.png index d345f070df..5fbbc5cb72 100644 Binary files a/website/static/img/firestore-datasource-config.png and b/website/static/img/firestore-datasource-config.png differ