Firebase Connector
Firebase is a platform developed by Google for creating mobile and web applications.
Firebase Cloud Firestore is a document-based, flexible, scalable, and NoSQL cloud database, used to store and sync data for client and server-side applications.
This component uses the Firebase Admin SDK to create, read, update, delete, and list documents within a Firebase Cloud Firestore collection.
API Documentation
This component was built using the Firebase Admin SDK Reference.
Connections
Private Key
Authenticate requests to Firebase using values obtained from the Google Cloud Platform.
The Firebase Admin SDK is a set of server libraries that lets applications interact with Firebase from privileged environments. This connection authenticates with a service account private key generated for the Firebase project.
Prerequisites
- A Firebase project with Cloud Firestore enabled
- Permission to manage service accounts for that project
Setup Steps
- Follow the Firebase Admin SDK setup guide to open the service account settings for the Firebase project
- Generate a new private key for the service account
- Download the JSON file that contains the generated credentials
Configure the Connection
- Enter the Project Id from the
project_idvalue in the JSON file - Enter the Private Key from the
private_keyvalue in the JSON file - Enter the Email from the
client_emailvalue in the JSON file
| Input | Comments | Default |
|---|---|---|
| Project Id | Provide the unique identifier of the project from the Google Cloud Platform. | |
| Private Key | Provide the private_key value from the service account JSON key file. See the Firebase Admin SDK setup guide. | |
Provide the client_email value from the service account JSON key file. |
Actions
Bulk Create Documents
Create multiple documents in a Cloud Firestore collection in a single operation
| Input | Comments | Default |
|---|---|---|
| Connection | The Firebase connection to use. | |
| Collection | Provide a string value for the collection name. | |
| Documents | An array of documents to be created in the collection. | |
Create Document
Create a document in a Cloud Firestore collection
| Input | Comments | Default |
|---|---|---|
| Collection | Provide a string value for the collection name. | |
| Data | The fields to write to the document, as key-value pairs. Each key is a field name and each value is the value to store in that field. | [] |
| Connection | The Firebase connection to use. |
Delete Document
Remove a document from a Cloud Firestore collection
| Input | Comments | Default |
|---|---|---|
| Collection | Provide a string value for the collection name. | |
| Document | Provide a string value for the unique identifier of the document. | |
| Connection | The Firebase connection to use. |
Get Document
Get the contents of a document in a Cloud Firestore collection
| Input | Comments | Default |
|---|---|---|
| Collection | Provide a string value for the collection name. | |
| Document | Provide a string value for the unique identifier of the document. | |
| Connection | The Firebase connection to use. |
List Collections
List all collections in a Cloud Firestore database
| Input | Comments | Default |
|---|---|---|
| Connection | The Firebase connection to use. |
List Documents
List all documents in a Cloud Firestore collection
| Input | Comments | Default |
|---|---|---|
| Collection | Provide a string value for the collection name. | |
| Connection | The Firebase connection to use. | |
| Order By | Provide a string value for the field to order by. | |
| Query Operators | A JSON array of filter conditions to apply to the query. Each condition is an object with field, operator, and value keys, and all conditions must match. Supported operators are the Cloud Firestore where-clause operators, such as ==, !=, in, not-in, and array-contains. A null value can only be compared with == or !=. |
Remove Field
Completely removes a field from a given document (may not work on a field with a null value)
| Input | Comments | Default |
|---|---|---|
| Collection | Provide a string value for the collection name. | |
| Document | Provide a string value for the unique identifier of the document. | |
| Field To Remove | The name of the field to delete from the document. Use dot notation, such as address.city, to remove a nested field. | |
| Connection | The Firebase connection to use. |
Update Document
Update a document in a Cloud Firestore collection
| Input | Comments | Default |
|---|---|---|
| Collection | Provide a string value for the collection name. | |
| Document | Provide a string value for the unique identifier of the document. | |
| Data | The fields to write to the document, as key-value pairs. Each key is a field name and each value is the value to store in that field. | [] |
| Connection | The Firebase connection to use. |