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

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            jiazhi zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: