Skip to main content

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 MatchingDescription
insertMatch the inserted document against filtered conditions
updateMatch the updated document against filtered conditions; documents before update are currently not supported
deleteMatch against filter conditions based on the document's value before deletion

Supported operators for triggers and their compatible field types are as follows:

OperatorField 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.