Hi I have a Kafka topic that I’d like to persist in a MongoDB using the official connector.
However, I struggle to get it to work with the current version. The topic we like to persist has a String-Key and a JSON payload. The id for the MongoDB is part of the JSON payload.
So far, everything is fine. However, when we receive a tombstone event, we’d like to delete all records that have the key of the topic in a certain field. Now, this causes currently 2 issues:
- Writing is not possible, since the connector fails on the first tombstone event and stops afterwards
- Delete is not possible, since there is no support for substituting the model for the delete case in a fashion similiar to writemodel.strategy
Is there any way around this and if not, would it be possible to get this PR merged? https://github.com/mongodb/mongo-kafka/pull/108
Kind regards