firestore

Firestore

Firestore is a NoSQL document-oriented database that is part of the Google Cloud Platform. It is designed to handle large volumes of unstructured or semi-structured data in real-time, making it ideal for use cases such as mobile and web applications. Firestore uses a flexible data model based on documents and collections instead of traditional tables, rows, and columns.

Firestore supports different data types such as strings, numbers, booleans, arrays, and maps, as well as more complex types like timestamps and geopoints. It also provides powerful querying and indexing capabilities to allow for efficient and fast data retrieval. Firestore can scale horizontally to handle increasing data volumes and has built-in redundancy and failover mechanisms to ensure high availability and data durability.

To establish a connection with Firestore, users can create a new project in the Google Cloud Console and enable Firestore. Once enabled, users can create a new database and start adding documents and collections to it. Firestore provides an easy-to-use API for accessing and manipulating data, as well as a powerful set of SDKs for popular programming languages such as Java, Python, and Node.js.

There are some important concepts and terms:

Project ID: Project ID is a unique identifier for a Firestore project. It is used to distinguish one project from another and to specify which project you want to access or modify.

JSON Credentials: JSON Credentials are a secure way to authenticate your application with Firestore. These credentials are provided by Firebase and contain a private key that your application uses to authenticate with Firestore.

Collection: A collection is a group of related documents stored in Firestore. Collections are analogous to tables in relational databases and are used to organize data in a structured manner.

Path: A path is a unique identifier that specifies the location of a document in a Firestore database. Paths are used to read, write, and query data from Firestore.

Operator: An operator is a symbol or keyword used in Firestore queries to filter or manipulate data. Some commonly used operators in Firestore are "==", ">=", "<=", ">", "<", "!=", "array-contains", and "in". These operators are used to compare, filter, and sort data in a collection or query results.


The following information outlines the parameters required to establish a connection with Firestore. It provides a clear breakdown of the specific parameters required and their corresponding data types, which must be accurately entered to establish a successful connection with Firestore.

Firestore

ProjectID (Optional)

ID of firebase project

String

CredentialJSON

Firebase Credentials in JSON format

String

Outputs

List of connection Outputs

List

Inputs

List of connection Inputs

List

 

Once the connection with the Firestore source has been established successfully, the "input" page is utilized to define the data or dataset. This step involves specifying the necessary details related to the data or dataset, such as its location, type, and structure. Ensuring that all the relevant information is accurately entered on the "input" page to properly define the data or dataset is crucial for the successful transfer of data to a Firestore collection.

Input

CollectionName

Name of the firestore collection

String

QueryParts

Parts of query to run

List

Path

Path leading to the required parameter of the document

String

Operator

One of the query operators allowed by firebase (eg. <=, ==)

String

Value

The value of the parameter to match

Any

 

To transfer the data package created by the user to a Firestore collection, it is necessary to define an output. This allows the user to specify the required details such as the collection name, field names, data types, and any constraints on the collection. It is important to ensure that all the required information is accurately entered when creating or modifying a collection in Firestore to ensure proper data transfer and manipulation.

Output

CollectionName

Name of collection to put data

String