Scheduled Triggers

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.

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.


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

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