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

[Realm Admin API] Add unordered field to DB triggers

    XMLWordPrintableJSON

Details

    • Icon: Doc API Doc API
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • API, Realm
    • None
    • 1

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 41 weeks, 2 days ago