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

ChangeStream clientSession passed to change event

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None

      We have many (>1) applications making changing to the same collections it would be nice to determine which client/application instigated the change in the database.

      Currently the only solution is maintaining some state in the object itself.

      Ideally when we listen to stream.on('change', (change, clientSession) => { } );
      a new clientSession parameter could be provided. This would be the clientSession of the process that inserted/updated/deleted the object, not the local listener clientSession.

      Is this possible?
      TIA
      Kevin Fairclough

            Assignee:
            asya.kamsky@mongodb.com Asya Kamsky
            Reporter:
            KevinFairclough Kevin Fairclough
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: