Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19470

Exchange body is null when using Mongodb changeStreams with update operation

    XMLWordPrintableJSON

Details

    • Moderate
    • Patch

    Description

      When using the mongodb component as a ChangeStreams consumer, the fullDocument is null for update operations. It's normal if we refer to mongodb documentation.

       

      As a temporary fix, you can use the object id to get the modified document with a route like this: 

      from("mongodb:mongo?consumerType=changeStreams....")
      .to("mongodb:mongo?operation=findById")

       

       

      The MongoDbChangeStreamsThread.initializeCursor() method should be changed to use the fullDocument option when creating the iterable.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kgarrido Kevin Garrido
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: