# Mongo ChangeStream

**Mongo ChangeStream** allow applications to access real-time data changes without the complexity. Applications can use change streams to subscribe to all data changes on a single collection, a database, or an entire deployment, and immediately react to them. Because change streams use the aggregation framework, applications can also filter for specific changes.

All component configurations are classified broadly into 3 section:

* [​Basic Information​](/data-pipeline-2/components/component-base-configuration.md)​
* Meta Information
* [Resource Configuration​](/data-pipeline-2/components/resource-configuration.md)​
* ​[Connection Validation](https://docs.bdb.ai/7.6/data-pipeline/components/connection-validation)

{% hint style="success" %}
*Follow the given walk-through to configure the Mongo Change Stream component.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuq3RSHHup7fjHYaspk7y%2Fuploads%2FuZ4jvesXHFGbjuaIqtlG%2F2023-03-28-10-46-34%20(online-video-cutter.com).mp4?alt=media&token=6a5a71af-764d-4836-b1b0-aaa6abd178cf>" %}
*Configuring the Mongo Change Stream component*
{% endembed %}

## **Configuring the Meta Information for the Mongo ChangeStream component**

* **Connection type:** Select the connection type from the drop-down menu and provide the required credentials.
* **Database name:** Enter the database name.
* **Collection name:** Enter the collection name from the given database.
* **Operation type:** Select the operation type from the drop-down menu. There are four types of operations supported here: ***Insert, Update, Delete,** and **Replace.***
* **Enable SSL:** Check this box to enable SSL for this components. Credentials will be different for this.

<figure><img src="/files/haiW8E3AH4HHRipsXB8c" alt=""><figcaption><p>Configuring the Meta Information tab of the Mongo ChangeStream component</p></figcaption></figure>

### Saving the Component

* Activate the pipeline, make any operation from the above given operation types in the Mongo collection.&#x20;
* Whatever operation has been done in the Mongo collection, the ***Mongo ChangeStream*** component will fetch that change and send it to the next Event in the Pipeline Workflow.&#x20;
* **Enable SSL:** Check this box to enable SSL for this components. MongoDB connection credentials will be different if this option is enabled.&#x20;
* **Certificate Folder:** This option will appear when the Enable SSL field is checked-in. The user has to select the certificate folder from drop down which contains the files which has been uploaded to the admin settings. Please refer the below given images for the reference.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bdb.ai/data-pipeline-2/components/consumers/mongo-changestream.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
