Configuration

To set up the MongoDB source, provide the following configuration parameters:

KeyDescriptionSample Value
databaseName of the database you want to read data from.company
hostHostname of your MongoDB server.127.0.0.1
passwordPassword for the user to access the database.abc123...
portPort on which MongoDB is running (typically 27017).27017
userUsername that will access the database.admin
replica_set(Optional) Name of the replica set, if any.optional
ssl(Optional) Use SSL for the connection. Default is false.false
authSource(Optional) Authentication source database name.the_database
authMechanism(Optional) Authentication mechanism. Default is none. Example: SCRAM-SHA-256.SCRAM-SHA-256

Run MongoDB Locally

You can run a local instance of MongoDB using Docker:

docker run -p 27017:27017 \
  -e MONGO_INITDB_ROOT_USERNAME=admin \
  -e MONGO_INITDB_ROOT_PASSWORD=password \
  --name mongo \
  mongo:latest