Trigger Snippets¶
Trigger Types
Database Triggers¶
The code snippets in this section cover common use cases for database triggers. All of the snippets require a linked MongoDB cluster.
Database Trigger Snippets
Send an SMS On New Document Inserts¶
This trigger function sends an SMS message to a pre-defined phone number whenever a new document is inserted into a collection using the twilio.send() action.
Send an SMS When a Specific Field Changes¶
This trigger function sends an SMS message to a pre-defined phone number whenever a specific field is updated in a collection’s documents using the twilio.send() action.
Authentication Triggers¶
The code snippets in this section cover common use cases for authentication triggers. All of the snippets require you to have enabled one or more authentication providers.
Authentication Trigger Snippets