Setting up Firebase

In the resources selector view - choose "Firebase." You will be prompted to provide a Service Account Key as well as a Database URL. The Service Account key is a JSON blob that you can create from your Firebase console, and the Database URL is how you can inform which database Retool should use. For more information on how you can obtain these fields see Firebase's documentation https://firebase.google.com/docs/admin/setup

Your configuration should resemble something like the screenshot below

After providing the Service Account Key and the Database URL, hit "Save." Retool will validate that it is able to connect to your Firebase database and then save. If instead you are looking to integrate Retool with Firestore, you need only fill in the Project Id section on this form.

Querying Firestore

To begin querying data in Firestore you must first fill in the Project Id property on the Resource screen. Once that's been completed, you will be able to write simple queries on Firestore. Here is an example of such a query.

Snapshot metadata

Retool also automatically adds an _id field to the returned data which will be the record's id.