[DOCS-15264] [Realm Admin API] Add unordered field to DB triggers Created: 21/Apr/22  Updated: 04/Jan/23  Resolved: 26/Apr/22

Status: Closed
Project: Documentation
Component/s: API, Realm
Affects Version/s: None
Fix Version/s: None

Type: Doc API Priority: Major - P3
Reporter: Josman Perez Exposito Assignee: Nicholas Larew
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Participants:
Days since reply: 1 year, 41 weeks, 2 days ago
Story Points: 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.



 Comments   
Comment by Nicholas Larew [ 25/Apr/22 ]

https://github.com/mongodb/docs-realm/pull/1875

Comment by Melissa Plunkett [ 21/Apr/22 ]

nick.larew@mongodb.com this will be helpful to vet and add as once you do we'll add it to Terraform as well.

Generated at Thu Feb 08 08:12:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.