config
Configuring Trigger
Trigger Types
Database
Collection: Select the database collection to monitor. Changes to documents within the collection will trigger an event. Event type: write represents write operations, including update, delete, and insert. Condition Matching: Unconditional trigger, Match all conditions below, Match any condition below
| Condition Matching | Description |
|---|---|
| insert | Match the inserted document against filtered conditions |
| update | Match the updated document against filtered conditions; documents before update are currently not supported |
| delete | Match against filter conditions based on the document's value before deletion |
Supported operators for triggers and their compatible field types are as follows:
| Operator | Field Type |
|---|---|
| =,!= | String,Number,Null,Bool |
| >,>=,<,<= | String,Number |
Action
Cloud Function
Cloud Functions can obtain data from the trigger source via event, and event.data will contain detailed data from that trigger source.
Note: The cloud invocation capability is only supported in environments where the source is a WeChat Mini Program.