Change Stream Event Document default Format of source connector

I has created mongodb source connector for Kafka, I tested in local machine it is working fine, But It is publishing the default event message structure in kafka topic and I want to publish only mongodb collection in the kafka topic so I need to remove all extra default field(e.g operationType, documentKey, ns, to etc.) from the message
Is it possible via mongo source connector pipeline?

Hi @BRIJ_MOHAN_GUPTA,

You can use the publish.full.document.only=true settings to only publish the inserted / updated document.

Ross

1 Like

Thank @Ross_Lawley , now it is working

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.