# MongoDB

### Before you begin

Make sure you have access to your **MongoDB connection string**. It can be in one of the following formats:

**Standard format:**

```python
mongodb://username:password@localhost:27017/myDatabase
```

**SRV format (used with MongoDB Atlas):**

```python
mongodb+srv://username:password@cluster0.mongodb.net/myDatabase
```

### How to Fill Out the Connection Form in Erathos

Use the details from your connection string to complete the form as follows:

| Field        | Value                                  |
| ------------ | -------------------------------------- |
| **DB**       | `myDatabase`                           |
| **Host**     | `cluster0.mongodb.net` or  `localhost` |
| **Port**     | `27017`                                |
| **User**     | `username`                             |
| **Password** | `password`                             |


---

# 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.erathos.com/connectors/databases/mongodb.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.
