# 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="mongodb/mongodb-system-requirements">mongodb-system-requirements</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="mongodb/mongodb-tonic-differences">mongodb-tonic-differences</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="mongodb/mongodb-workspace-data-connections">mongodb-workspace-data-connections</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="mongodb/mongodb-hints-tips">mongodb-hints-tips</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="../generation/working-with-document-based-data/mongodb-collection-scans">mongodb-collection-scans</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="../generation/working-with-document-based-data/mongodb-collection-view">mongodb-collection-view</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="../generation/working-with-document-based-data/document-path-expressions">document-path-expressions</a></td></tr></tbody></table>
