# MongoDB

1\. Go to **Workflows** and click **Create Workflow** (Before creating a new workflow, you have to [create a resource](/acho-studio/resources/add-a-resource.md) first and then [import the resource to a project](/acho-studio/data-prep-projects/create-a-project.md)).

<figure><img src="/files/eCV5XCJhCAyMKtYvOmC3" alt=""><figcaption></figcaption></figure>

2\. In Workflow, drag **MongoDB** from the right sidebar to the canvas.&#x20;

<figure><img src="/files/ciKBmsKB09jrylDMadMA" alt=""><figcaption></figcaption></figure>

3\. Configure your **MongoDB** destination. (Remember to white list Acho's IP address: **`35.239.14.244`**)

* Host
* Port
* Database
* Schema
* Username
* Password

![](/files/I0lsqN4pLRI3ygmmuNZR)

4\. Once your MongoDB is set up successfully, the status will become <img src="/files/XUVjABlrtvBATkg8s3Nq" alt="" data-size="line"> . Your MongoDB database will be stored in **Existing Database**, so next time you can drag it to the Workflow directly without filling out credentials.&#x20;

<figure><img src="/files/tE3hsQKvPiu8PtpobdZ2" alt=""><figcaption></figcaption></figure>

5\. Connect the table to your MongoDB database.<br>

<figure><img src="/files/NgDUd59cbbl0DGwsn1n3" alt=""><figcaption></figcaption></figure>

6\. Choose the **replication method** and click **Save.** When you export data to MongoDB, Acho will create a new table in your MongoDB. When your project table is updated, your table in MongoDB will be updated as well. The replication method is to determine how to update your table in MongoDB.

* **Full Refresh:** Replace your MongoDB table with the new table.<br>

  <figure><img src="/files/qbGDFpj0QXYpfKdmqrjG" alt=""><figcaption></figcaption></figure>

7\. You can set up the **Data Sync** for your project table. Once your project table is updated, new data will be exported to your database automatically.&#x20;

<figure><img src="/files/8N0gtpcgim2BOSXmCaLl" alt=""><figcaption></figcaption></figure>


---

# 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.acho.io/acho-studio/data-flow/export-data/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.
