Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2632

Add documentKey property to ChangeStreamDocument

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0
    • Affects Version/s: None
    • Component/s: Query Operations
    • None

      Change stream documents contain a documentKey field, e.g.:

      { 
        "_id" : { "clusterTime" : { "ts" : { "$timestamp" : { "t" : 1507742913, "i" : 3 } } }, "uuid" : { "$binary" : "FU854jJaEhGqQ+hPGNe9uA==", "$type" : "03" }, "documentKey" : { "_id" : 0 } }, 
        "operationType" : "insert",
        "fullDocument" : { "_id" : 0, "str" : "0" }, "ns" : { "db" : "test", "coll" : "changes" },
        "documentKey" : { "_id" : 0 } }
      

      But there is no corresponding documentKey property in ChangeStreamDocument.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: