Skip to main content

Overview

A trigger is triggered by events to perform actions. For example, when performing operations (create, delete, update) on documents in a collection, it will trigger a cloud function. By using triggers, you can implement business logic more conveniently.

Add Trigger

Configure Trigger

Trigger Types: Currently, only database is supported. Support for cloud storage, scheduled tasks, user status changes, and other types will be added in the future. Execution Status: Once enabled, it takes effect immediately upon successful trigger creation.

Set Conditions

Set different types of conditions based on the trigger type.

Add Action

The trigger will execute actions when the trigger conditions are met.

Action Types: Currently, only cloud functions are supported. Support for webhook, SMS, and other types will be added in the future. Trigger Frequency:

  • Trigger every time
  • Trigger only once
  • Trigger only once within a specified time period (supports setting time intervals from 6S to 30 days)

Limitations

  1. A single trigger can be configured with a maximum of 5 actions.
  2. The maximum data size per trigger is 256KB; data exceeding this limit will be discarded.
  3. Trigger rate limit per single environment: 200QPS