MongoDB
This page details how to set up MongoDB change stream.
Last updated
Was this helpful?
This page details how to set up MongoDB change stream.
Last updated
Was this helpful?
The works similar to Cinchy's Change Data Capture functionality. The listener subscribes to monitor the change stream of a specific collection in the database of the MongoDB server. Any actions performed on document(s) inside of that collection are picked up by the listener and sent to the queue.
In order to use change streams in MongoDB, there are a few requirements your environment must meet.
The database must be in a or .
The database must use the storage engine.
The replica set or sharded cluster must use replica set protocol .
The following parameters should be included in your listener configuration entry when setting up a real time sync using MongoDB.
Database
Collection
Pipeline Stages
Optional. This parameter allows you to specify pipeline stages with filters.
Each stage performs an operation on the input documents. For example, a stage can filter documents, group documents, and calculate values.
The documents that are output from a stage are passed to the next stage.
An aggregation pipeline can return results for groups of documents. For example, return the total, average, maximum, and minimum values. Our example config uses a filter to return documents with an ID between 0 and 10,000 AND documents with the location set to Montreal, OR where the operation type is 'delete'
Connection String
The name of your MongoDB
The name of your MongoDB
In MongoDB, an aggregation pipeline consists of one or more that process documents:
Your MongoDB