🚀 New! Kestra raises $3 million to grow Learn more

Set Set

yaml
type: "io.kestra.plugin.gcp.firestore.Set"

Set a document in a collection.

Examples

Set a document from a map.

yaml
id: "set"
type: "io.kestra.plugin.gcp.firestore.Set"
collection: "persons"
document:
  firstname: "John"
  lastname: "Doe"

Set a document from a JSON string.

yaml
id: "set"
type: "io.kestra.plugin.gcp.firestore.Set"
collection: "persons"
document: "{{ outputs.task_id.data | json }}"

Properties

childPath

  • Type: string
  • Dynamic: ✔️
  • Required:

The Firestore document child path.

collection

  • Type: string
  • Dynamic: ✔️
  • Required:

The Firestore collection

document

  • Type:
    • string
    • object
  • Dynamic: ✔️
  • Required:

The Firestore document. Can be a JSON string, or a map.

projectId

  • Type: string
  • Dynamic: ✔️
  • Required:

The GCP project ID.

scopes

  • Type: array
  • SubType: string
  • Dynamic: ✔️
  • Required:
  • Default: [https://www.googleapis.com/auth/cloud-platform]

The GCP scopes to used.

serviceAccount

  • Type: string
  • Dynamic: ✔️
  • Required:

The GCP service account key.

Outputs

updatedTime

  • Type: string
  • Dynamic:
  • Required:
  • Format: date-time

The document updated time