Google Cloud Query

Google Cloud Query

Certified

Query documents from Firestore

Executes a Firestore query with optional filters, ordering, pagination, and fetch mode. Supports fetching first/all rows or storing results to a file.

yaml
type: io.kestra.plugin.gcp.firestore.Query
yaml
id: gcp_firestore_query
namespace: company.team

tasks:
  - id: query
    type: io.kestra.plugin.gcp.firestore.Query
    collection: "persons"
    filters:
      - field: "lastname"
        value: "Doe"
Properties

Collection path

Target collection name or path

Default(default)

Database ID

Defaults to (default) if not provided

DefaultSTORE
Possible Values
STOREFETCHFETCH_ONENONE

Fetch type

FETCH_ONE returns first row; FETCH returns all rows in output; STORE writes rows to a file; NONE returns nothing.

Filters

List of field/operator/value filters applied as where clauses

Definitions
field*Requiredstring

Field name for the filter

value*Requiredstring

Field value for the filter

Field value for the filter. Only strings are supported at the moment.

operatorstring
DefaultEQUAL_TO
Possible Values
EQUAL_TONOT_EQUAL_TOLESS_THANLESS_THAN_OR_EQUAL_TOGREATER_THANGREATER_THAN_OR_EQUAL_TO

The operator for the filter, by default EQUAL_TO that will call 'collection.whereEqualTo(name, value)'

The GCP service account to impersonate

Limit

Maximum number of results

Offset

Start offset for paginating results

Order by field

DefaultASCENDING
Possible Values
ASCENDINGDESCENDING

Order direction

ASCENDING by default

Reference (ref) of the pluginDefaults to apply to this task.

The GCP project ID

SubTypestring
Default["https://www.googleapis.com/auth/cloud-platform"]

The GCP scopes to be used

The GCP service account

Map containing the first row of fetched data.

Only populated if using fetchType=FETCH_ONE.

List containing the fetched data.

Only populated if using fetchType=FETCH.

The number of fetched rows.

Formaturi

Kestra's internal storage URI of the stored data.

Only populated if using fetchType=STORE.

Unitrecords

Number of records queried from the Firestore collection.