Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-41086

Can mongo change stream return updated fields in case of replace operation

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • ALL

    Description

      We are using mongo changestream to watch couple of collections

      In our microservice java code we are using mongoTemplate.save in some places to update the document. 

      changestream is picking it as "replace" operation and not showing updatedFields. 

      Is it possible to just include what fields to updated in updatedescription?

      Attachments

        Activity

          People

            daniel.hatcher@mongodb.com Danny Hatcher (Inactive)
            lavanya505 Lavanya Kondragunta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: