Navigation

Scheduled Triggers

On this page

  • Overview
  • Create a Scheduled Trigger
  • Reference
  • Scheduled Trigger Configuration

Scheduled triggers allow you to execute server-side logic on a regular schedule that you define. You can use scheduled triggers to do work that happens on a periodic basis, such as updating a document every minute, generating a nightly report, or sending an automated weekly email newsletter.

Field
Description
Trigger Type
type: <string>

Required. The type of the Trigger.

For scheduled Triggers, this value should be set to SCHEDULED.

Trigger Name
name: <string>
Required. The name of the Trigger.
Linked Function
function_name: <string>

Required. The name of the Realm Function that the Trigger executes whenever it fires.

Note

A scheduled Trigger does not pass any arguments to its linked Function.

Schedule
config.schedule: <string>
Required. The CRON expression that MongoDB Realm uses to determine when to fire the Trigger.
Give Feedback

On this page

  • Overview
  • Create a Scheduled Trigger
  • Reference
  • Scheduled Trigger Configuration