Can capture CDC document level?

Hi,

I’m a newbie in MongoDB and I tried to CDC data from MongoDB Atlas → Kafka topic.
I expected to capture events when having documents added, some documents updated and some documents deleted.

I tried to configure my source connector with pipeline as:

“pipeline”:"[{"$match": { “$or”: [{“operationType”: “insert”},{“operationType”: “delete”},{“operationType”: “update”}]}}]"

But when I deleted document in MongoDB didn’t have any event capture come to Kafka topic.
Please help to guide me for capture CDC :).

I tried to test and found when I removed “publish.full.document.only”: true, from connector configure my connector able to capture delete document event that why?