# MongoDB Reader

This task is used to read data from Mongodb collection.

**Please follow the below mentioned steps to configure MongoDB reader task:**

<figure><img src="https://content.gitbook.com/content/c39ZvXI46qjXzpN3rYAg/blobs/OuWXrZf7SeXLg86ZQyMq/image.png" alt=""><figcaption><p>Mongodb Reader</p></figcaption></figure>

* **Connection Type**: Select the connection type from the drop-down:
  * **Standard**
  * **SRV**&#x20;
  * **Connection String**
* ***Port*** (\*): Provide the Port number (*It appears only with the **Standard** connection type*).
* ***Host IP Address*** (\*): The IP address of the host.
* ***Username*** (\*): Provide a username.
* ***Password*** (\*): Provide a valid password to access the MongoDB.
* ***Database Name*** (\*): Provide the name of the database where you wish to write data.
* ***Additional Parameters***: Provide details of the additional parameters.
* **Cluster Shared:** Enable this option to horizontally partition data across multiple servers.
* **Schema File Name:** Upload Spark Schema file in JSON format.
* ***Query:*** Please provide Mongo Aggregation query in this field.
