MongoDB is a NoSQL database that uses JSON-like documents with optional schemas. The MongoDB Source Connector allows you to capture inserts, updates, and deletes from a collection and stream to a destination.
- Navigate to your Meroxa Resource Catalog.
- Select "Add Resource".
To add an MongoDB resource to your Meroxa Resource Catalog, you can run the following command:
-u option requires a valid access URL.
The following MongoDB environments are supported:
- Generic MongoDB
- Mongo Atlas
Meroxa has been tested against the following MongoDB versions:
To add as a resource, the MongoDB instance needs to be accessible by Meroxa.
If your instance is publically accessible, there is nothing to do. If not, you may:
The access URL contains the credentials needed to access your instance:
In the example above, replace following variables with valid credentials from your MongoDB environment:
$MONGO_USER- MongoDB Username
$MONGO_PASS- MongoDB Password
$MONGO_URL- MongoDB URL
$MONGO_PORT- MongoDB Port (e.g., 1234).
Meroxa accepts any valid Mongo Connection String URIs.
The MongoDB Source Connector leverages the native
oplog (as used internally within replica sets) to capture changes from a collection.
The Input for this connector is an MongoDB Collection.
For example, to create a connector using the CLI, you may use the following command:
On every update, the Data Record takes the following format: