Cloud Firestore Connection icon

Cloud Firestore Connection

Interact with Google Cloud Firestore (and Storage)

Update

AI-generated

Summary

Updates an existing Firestore document with provided field values.

Inputs

  • path (required) — Path to the document to update (e.g., 'collection/docId').
  • documentData — Collection of fields to update. Each field requires a Key, Value, and Type (String, Number, Boolean, Map, Array, Null, Timestamp, GeoPoint, Reference).

Output shape

A single JSON object containing a success flag and the document path.

The operation does not return the updated document content; it only confirms the update operation succeeded.

Examples

Example 1: Update a user's status.

Path: 'users/123', Fields: Name='status', Value='active', Type='string'

Example 2: Update a timestamp field to the current time.

Path: 'logs/456', Fields: Name='timestamp', Value='2023-10-27T10:00:00.000Z', Type='timestamp'

Discussion