# MongoDB

MongoDB is an open source NoSQL database. MongoDB does not store data in tables according to a rigid schema. Instead, MongoDB stores data in documents that have a flexible schema or no schema at all.

Tonic Structural can work with MongoDB data that is either hosted on Atlas or is self-hosted.

You can also use the MongoDB data connector to connect to an Amazon DocumentDB database.

## General data connector information <a href="#mongodb-general-info" id="mongodb-general-info"></a>

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>System requirements</strong></td><td>Supported versions of MongoDB for Structural.</td><td></td><td><a href="/pages/Se4yjaqE4vCiqlQ4HwPr">/pages/Se4yjaqE4vCiqlQ4HwPr</a></td></tr><tr><td><strong>Structural differences and limitations</strong></td><td>Features that are unavailable or work differently in MongoDB workspaces.</td><td></td><td><a href="/pages/EvrEGyfQ6d3DY4Dm4JAi">/pages/EvrEGyfQ6d3DY4Dm4JAi</a></td></tr><tr><td><strong>Configure workspace data connections</strong></td><td>Data connection settings for MongoDB workspaces.</td><td></td><td><a href="/pages/qmxpH1Se1zRezRenrJjf">/pages/qmxpH1Se1zRezRenrJjf</a></td></tr><tr><td><strong>Other MongoDB hints and tips</strong></td><td>Other tips for working with MongoDB in Structural.</td><td></td><td><a href="/pages/6TR8zoD2ukC0TEAYsYlo">/pages/6TR8zoD2ukC0TEAYsYlo</a></td></tr></tbody></table>

## Configuring generators for MongoDB collection fields <a href="#mongodb-generator-config" id="mongodb-generator-config"></a>

For MongoDB, **Database View** and **Table View** are replaced with **Collection View**.

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Scan collections</strong><br><br>The collection scan identifies the collections and fields in the database.</td><td><a href="/pages/rTXL5dB5kvlSXsOZkwKS">/pages/rTXL5dB5kvlSXsOZkwKS</a></td></tr><tr><td><strong>Use Collection View</strong><br><br>Use <strong>Collection View</strong> to assign generators to collection fields.</td><td><a href="/pages/GCwZu14RRvB5QWvA5GYx">/pages/GCwZu14RRvB5QWvA5GYx</a></td></tr><tr><td><strong>Assign generators to path expressions</strong><br><br>Assign a generator to all of the fields that match a JSONPath expression.</td><td><a href="/pages/zgxOyU7jo4MjaIkIiyBV">/pages/zgxOyU7jo4MjaIkIiyBV</a></td></tr></tbody></table>


---

# 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.tonic.ai/app/setting-up-your-database/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.
