Firebase Admin icon

Firebase Admin

Interact with Firebase Firestore, Auth, and Storage using Firebase Admin SDK

Firestore → Update

AI-generated

Summary

Update an existing Firestore document at a specified path with provided JSON data, supporting Firestore special functions for advanced field operations.

Inputs

  • Project Name or ID — Select the Firebase project by name or ID, or specify an expression to determine it dynamically.
  • Path (required) — Specify the complete document path in Firestore, including subcollections if needed (e.g., collection/documentId or collection/documentId/subcollection/docId).
  • Document Data (required) — Provide the JSON object representing fields to update in the document, allowing use of Firestore special functions such as serverTimestamp, increment, arrayUnion, delete, etc.

Output shape

The updated Firestore document data response.

The operation returns the updated document data after applying the changes specified in Document Data. It requires the document to exist at the given path; otherwise, update will fail.

Links

Discussion