Hello. I have used mongodb sink connector for writing the message into database. I integrated with Create and update that’s working fine. I wish I want to delete the document completely based on document fields. I have given below curl configuration it’s not working properly. Please, pointout what i have done wrong…
curl -X POST -H “Content-Type: application/json” -d '{“name”:“test-testing-delete”,
“config”:{“topics”:“movies”,
“connector.class”:“com.mongodb.kafka.connect.MongoSinkConnector”,
“tasks.max”:“1”,
“connection.uri”:“mongodb://localhost:27017”,
“database”:“flower”,
“collection”:“movies”,
“key.converter”:“org.apache.kafka.connect.storage.StringConverter”,
“value.converter”:“org.apache.kafka.connect.storage.StringConverter”,
“key.converter.schemas.enable”:“false”,
“value.converter.schemas.enable”:“false”,
“document.id.strategy.overwrite.existing”:true,
“document.id.strategy”:“com.mongodb.kafka.connect.sink.processor.id.strategy.PartialKeyStrategy”,
“document.id.strategy.partial.key.projection.list”:“id”,
“document.id.strategy.partial.key.projection.type”:“ALLOWLIST”,
“writemodel.strategy”:“com.mongodb.kafka.connect.sink.writemodel.strategy.DeleteOneBusinessKeyStrategy”
}}’ localhost:8083/connectors