Skip to main content

Module config

Module config 

Source
Expand description

MongoDB connector configuration.

Provides MongoDbSourceConfig for the CDC change stream source and MongoDbSinkConfig for the write sink. Both support construction from a generic ConnectorConfig key-value map and programmatic builders.

§Pipeline Validation

The source config validates that user-supplied aggregation pipeline stages do not modify the _id field. MongoDB 8.x throws a server-side error if _id is projected away; validating at construction prevents runtime failures.

Structs§

MongoDbSinkConfig
Configuration for the MongoDB sink connector.
MongoDbSourceConfig
Configuration for the MongoDB CDC source connector.
WriteConcernConfig
Write concern configuration for MongoDB operations.

Enums§

FullDocumentMode
Mode for requesting full documents on update events.
WriteConcernLevel
Write concern level for MongoDB write operations.