Skip to main content

Connecting to Cloud Firestore

Creating a new connection

  1. Open the connections dialogue. See managing connections for more information.
  2. Click the New Connection button at the bottom-left of the dialogue.
  3. From the Database dropdown, select Cloud Firestore.
  4. Give your connection a Name so you can easily identify it.
  5. Enter the Google Cloud Project ID for your Cloud Firestore database.
  6. Select your authentication strategy. You can either delegate access to a service account provided by Ezfire or provide a service account key for your own service account. See authenticating a Google Cloud Service for more information. In particular, the service account needs one of the following roles:
    • roles/datastore.viewer for a read-only connection.
    • roles/datastore.user for a read/write connection.
  7. Click the Save button to save your connection.

Your Cloud Firestore connection is now ready to use.

JavaScript API

Cloud Firestore connections support running JavaScript queries. For these queries, the db global supports the Firestore API from the @google-cloud/firestore NPM package. See the official documentation for more information.