Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15264

[Realm Admin API] Add unordered field to DB triggers

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API, Realm
    • Labels:
      None
    • 1

      Hello team,

      In the Realm Admin API docs section for the triggers, there is no mention of the property unordered which is useful for setting the default value for enable event ordering.

      I think we should add this to the docs. The following cURL will work, so this is supported:

      curl --location --request POST 'https://realm.mongodb.com/api/admin/v3.0/groups/604a015e2cd96e727e5aa613/apps/604a02389a3024bc9a0a2a04/triggers' \
      --header 'Content-Type: application/json' \
      --header 'Authorization: Bearer eyJhb....' \
      --data-raw '{
        "name": "DatabaseAPITriggerExample",
        "type": "DATABASE",
        "function_id": "61123687d87614c7b3258d34",
        "disabled": false,
        "config": {
          "operation_types": ["INSERT", "UPDATE"],
          "database": "sample_mflix",
          "unordered": true,
          "collection": "movies",
          "service_id": "604a02396d9de2ae9254aff7",
          "full_document": false,
          "schedule": "string"
        }
      }'
      

      Adding true/false to the property unordered will change this value in the trigger.

            Assignee:
            nick.larew@mongodb.com Nicholas Larew
            Reporter:
            josman.perez@mongodb.com Josman Perez Exposito
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              2 years, 4 days ago