Overview
MongoDB is a document-oriented NoSQL database that provides high performance, high availability, and easy scalability. Datazone provides native integration with MongoDB to read data directly from your collections.Connection Parameters
Set on the source when you create it. Names match the API and CLI payload.Host — hostname or IP address of your MongoDB server. You may also supply a full connection string beginning with
mongodb:// or mongodb+srv://, in which case it is used verbatim and port, user, and password are ignored. Use this form for replica sets, Atlas clusters, and any connection needing extra options.Extract Parameters
Set per extract, insource_parameters. See Shared Extract Parameters for mode, replication_key, and schema_mapping.
Documents fetched and written per batch. Lower than the relational default because documents are typically wider than rows.
Number of documents sampled to infer the schema. Raise it when a collection is heterogeneous and fields present in only a few documents are being missed.
Cast values to string rather than inferring narrower types. Keeps the schema stable across documents whose field types disagree.
Required Permissions
The MongoDB user account needs the following permissions:find- For reading documents from collectionslistCollections- For listing available collectionslistIndexes- For accessing collection indexesread- For reading data from the database
Limitations
Be aware of the following limitations when working with MongoDB sources:- Complex MongoDB data types may be converted to standard formats
- Individual document size limits apply based on your MongoDB configuration
- The schema is inferred from a sample of documents, not from the whole collection
Next Steps
After configuring your MongoDB source:- Create extracts to specify which collections to ingest
- Configure scheduling for recurring extracts
- Integrate the source into your data pipelines