MongoDB Triggers¶
Currently, Connect iPaaS provides five triggers for MongoDB. The MongoDB triggers on Connect iPaaS are real-time triggers which means that MongoDB will notify Connect iPaaS as soon as any changes are made in the desired document or collection.
Note: As we are using change stream mechanism to get the notification from the database this mechanism does not support system databases like admin, config and local. And you should have replication enabled for this database.
- Collection Dropped
- Document Created
- Document Deleted
- Document Updated
Collection Dropped¶
It triggers your workflow when a collection is dropped from the MongoDB database. Optionally, you can also apply filters while defining the trigger.
Document Created¶
It triggers your workflow when a new document is added to the MongoDB database collection.
For example in Figure 4 below, when the document is created inside testcollection
collection then connect iPaaS will get a notification. You can also use event filters to filter out specific event.
Document Deleted¶
It triggers your workflow when the document is deleted from the MongoDB database collection.
For example in Figure 5 below, when the document is deleted from testcollection
collection then connect iPaaS will get a notification. You can also use event filter to filter out specific event.
Document Updated¶
It triggers your workflow when the document is updated to the MongoDB database collection.
For example in Figure 6 below, when the document is updated from testcollection
collection then connect iPaaS will get a notification. You can also use event filter to filter out specific event.