On Document Modified
AI-generatedSummary
Triggers a workflow when a specific document is modified, optionally filtering the change based on field values.
Inputs
- path (required) — The path to the specific document to monitor (e.g., 'users/123').
- filters — Conditions the document must match to trigger. Supports comparisons like equals, greater than, exists, and array checks. Values are interpreted according to their type (string, number, timestamp, etc.).
Output shape
A single item containing the document ID, the full path, and the current document data.
The operation returns the complete current state of the document, not just the changes.
Examples
Example 1: Trigger on a specific user update
Set path to 'users/123' and filter for 'status' equals 'active'.
Example 2: Trigger on a status change to 'paid'
Set path to 'orders' and filter 'status' equals 'paid'.