# MongoDB

MongoDB is a broadly used NoSQL database system that stores data in JSON-like documents with dynamic schemas and handles both unstructured and semi-structured data. By offering high performance, scalability, and ease of use, MongoDB is a versatile and robust solution for a wide range of use cases.

## Prerequisites

* Get MongoDB database connection parameters from the database owner.

## Connect to MongoDB data source

Create a new data source in two ways. Note that this permission is restricted to workspace admins and developers.

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2FlDwirXOvGWnFUNnA5z3E%2FConnectNewDataSourceOverview.gif?alt=media&#x26;token=dbdec7b0-0908-420f-b971-c761d7dadac0" alt=""><figcaption></figcaption></figure>

Select **Database** > **MongoDB** as the data source type.

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2FSLbfgIvUWnZ4EE1xt7EE%2Fimage.png?alt=media&#x26;token=c9ddce36-6404-4dbd-9c8e-02d6c3e4b86c" alt=""><figcaption></figcaption></figure>

Set its name and service account.

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fg0j6M41PIomih3IBsaYl%2Fimage.png?alt=media&#x26;token=0b695250-086f-447b-9240-0868ab65c37a" alt=""><figcaption></figcaption></figure>

(Optional) Click **Test connection** to check whether the new data source is successfully connected.

Click **Save**, and it will be saved to your data source library.
