Set Set

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

Set a document in a collection.

# Examples

Set a document from a map.

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

Set a document from a JSON string.

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: ====
  • 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

The document updated time