Uploaded image for project: 'Kafka Connector'
  1. Kafka Connector
  2. KAFKA-287

How to get the operationType when publish.full.document.only=true

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.6.1
    • Component/s: Configuration

      As the title mentioned, I want to get operationType in full-document mode. Although I can get the field if i set publish.full.document.only=false, the json message will become more complicated, which the fullDocument field was put in the inner json of a field named payload.
      i am only interested in operationType *and *fullDocument, and i want to get a json without payload filed like below.

      {
      "fullDocument":"data...",
      "operationType":"insert or update"
      }
      

      Is there any simple way to get that json through config ?
      It is better if you could give me a sample of whole config for that. Thanks

            Assignee:
            robert.walters@mongodb.com Robert Walters
            Reporter:
            zhoujiazhiwork@163.com jiazhi zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: