Skip to main content
Version: 2.2.0-beta

MongoDb

MongoDB sink connector

Description​

Write data to MongoDB

Key features​

Options​

nametyperequireddefault value
uristringyes-
databasestringyes-
collectionstringyes-

uri [string]​

uri to write to mongoDB

database [string]​

database to write to mongoDB

collection [string]​

collection to write to mongoDB

Example​

mongodb {
uri = "mongodb://username:password@127.0.0.1:27017/mypost?retryWrites=true&writeConcern=majority"
database = "mydatabase"
collection = "mycollection"
}